mirror of
https://github.com/RonanPlugins/BetterRTP.git
synced 2025-08-17 17:15:47 +00:00
3.0.4-1 release - rtp circle shape fix
This commit is contained in:
parent
c0846e5413
commit
993480df38
2
pom.xml
2
pom.xml
@ -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>
|
||||||
|
@ -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));
|
||||||
|
@ -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:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user