mirror of
https://github.com/songoda/UltimateStacker.git
synced 2025-02-17 03:41:20 +01:00
fix for non existent setspawncount.
This commit is contained in:
parent
ecf4b79043
commit
5b34ee52e7
@ -32,11 +32,7 @@ public class SpawnerStack {
|
||||
this.amount = amount;
|
||||
|
||||
CreatureSpawner creatureSpawner = (CreatureSpawner)location.getBlock().getState();
|
||||
if (UltimateStacker.getInstance().isServerVersionAtLeast(ServerVersion.V1_12)) {
|
||||
creatureSpawner.setSpawnCount(4 * amount);
|
||||
} else {
|
||||
Reflection.setRange(creatureSpawner, 4 * amount);
|
||||
}
|
||||
Reflection.setRange(creatureSpawner, 4 * amount);
|
||||
creatureSpawner.update();
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user