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

@ -7,7 +7,7 @@
<groupId>me.SuperRonanCraft</groupId> <groupId>me.SuperRonanCraft</groupId>
<artifactId>BetterRTP</artifactId> <artifactId>BetterRTP</artifactId>
<packaging>jar</packaging> <packaging>jar</packaging>
<version>3.0.4</version> <version>3.0.4-1</version>
<properties> <properties>
<maven.compiler.source>1.8</maven.compiler.source> <maven.compiler.source>1.8</maven.compiler.source>

View File

@ -154,7 +154,7 @@ public class WorldPlayer implements RTPWorld {
//Generate a random X and Z based off the quadrant selected //Generate a random X and Z based off the quadrant selected
int max = maxRad - min; int max = maxRad - min;
int x, z; 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; double theta = (new Random().nextDouble()) * 2 * Math.PI;
x = (int) (r * Math.cos(theta)); x = (int) (r * Math.cos(theta));
z = (int) (r * Math.sin(theta)); z = (int) (r * Math.sin(theta));

View File

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