Remove unused static Random in BBaseSpawnerImpl for Spiot 1.19

This commit is contained in:
Christian Koop 2022-06-07 20:08:33 +02:00
parent c50b691c3c
commit c33987162e
No known key found for this signature in database
GPG Key ID: 89A8181384E010A3

View File

@ -26,14 +26,11 @@ import org.bukkit.event.entity.CreatureSpawnEvent;
import java.util.Iterator;
import java.util.Optional;
import java.util.Random;
public class BBaseSpawnerImpl implements BBaseSpawner {
private final CreatureSpawner bukkitSpawner;
private final BaseSpawner spawner;
private static final Random spawnerRandom = new Random(); // Field random in BaseSpawner is private - We use one random for *all* our spawners (should be fine, right?)
public BBaseSpawnerImpl(CreatureSpawner bukkitSpawner, BaseSpawner spawner) {
this.bukkitSpawner = bukkitSpawner;
this.spawner = spawner;