Browse Source

Arena System

lakebane2
FatBoy-DOTC 2 weeks ago
parent
commit
41f4a8ff58
  1. 6
      src/engine/gameManager/ArenaManager.java

6
src/engine/gameManager/ArenaManager.java

@ -32,8 +32,8 @@ public class ArenaManager { @@ -32,8 +32,8 @@ public class ArenaManager {
}
}
if(lastExecution + pulseDelay < System.currentTimeMillis())
return;
//if(lastExecution + pulseDelay > System.currentTimeMillis())
// return;
lastExecution = System.currentTimeMillis();
@ -93,7 +93,7 @@ public class ArenaManager { @@ -93,7 +93,7 @@ public class ArenaManager {
try {
// Generate random X and Z coordinates within the range [10,000, 90,000]
float x = ThreadLocalRandom.current().nextInt(10000, 90000);
float z = ThreadLocalRandom.current().nextInt(-10000, -90000);
float z = ThreadLocalRandom.current().nextInt(10000, 90000);
float y = 0; // Y coordinate is always 0
loc = new Vector3fImmutable(x, y, z);

Loading…
Cancel
Save