mirror of
https://github.com/RonanPlugins/BetterRTP.git
synced 2025-08-17 09:05: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>
|
||||
<artifactId>BetterRTP</artifactId>
|
||||
<packaging>jar</packaging>
|
||||
<version>3.0.4</version>
|
||||
<version>3.0.4-1</version>
|
||||
|
||||
<properties>
|
||||
<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
|
||||
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:
|
||||
|
Loading…
x
Reference in New Issue
Block a user