3.0.4-1 release - rtp circle shape fix

This commit is contained in:
SuperRonanCraft
2021-01-14 13:55:44 -05:00
parent c0846e5413
commit 993480df38
3 changed files with 3 additions and 3 deletions

View File

@@ -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));

View File

@@ -1,5 +1,5 @@
main: me.SuperRonanCraft.BetterRTP.BetterRTP
version: '3.0.4'
version: '3.0.4-1'
name: BetterRTP
author: SuperRonanCraft
softdepend: