fix for non existent setspawncount.

This commit is contained in:
Brianna O'Keefe 2018-11-22 16:28:32 -05:00
parent ecf4b79043
commit 5b34ee52e7

View File

@ -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();
}