Fix code issue

This commit is contained in:
StartForKiller 2023-06-17 02:17:23 +02:00
parent acdc1a6cf0
commit caec272829
No known key found for this signature in database
GPG Key ID: CE5EA6FC54AAB4F0

View File

@ -54,7 +54,7 @@ public class World implements Iterable<Player> {
private long lastUpdateTime;
@Getter private long currentWorldTime = 0;
@Getter private Random worldRandomGenerator = new Random();
@Getter private Random worldRandomGenerator;
public World(Player player) {
this(player, false);
@ -73,6 +73,8 @@ public class World implements Iterable<Player> {
this.lastUpdateTime = System.currentTimeMillis();
this.currentWorldTime = owner.getPlayerGameTime();
this.worldRandomGenerator = new Random();
this.owner.getServer().registerWorld(this);
}