mirror of
https://github.com/RonanPlugins/BetterRTP.git
synced 2026-04-04 23:16:02 +00:00
3.0.4-1 release - rtp circle shape fix
This commit is contained in:
@@ -154,7 +154,7 @@ public class WorldPlayer implements RTPWorld {
|
||||
//Generate a random X and Z based off the quadrant selected
|
||||
int max = maxRad - min;
|
||||
int x, z;
|
||||
double r = max * Math.sqrt(new Random().nextDouble());
|
||||
double r = max * Math.sqrt(new Random().nextDouble()) + min;
|
||||
double theta = (new Random().nextDouble()) * 2 * Math.PI;
|
||||
x = (int) (r * Math.cos(theta));
|
||||
z = (int) (r * Math.sin(theta));
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
main: me.SuperRonanCraft.BetterRTP.BetterRTP
|
||||
version: '3.0.4'
|
||||
version: '3.0.4-1'
|
||||
name: BetterRTP
|
||||
author: SuperRonanCraft
|
||||
softdepend:
|
||||
|
||||
Reference in New Issue
Block a user