Merge pull request #2239 from HenryLoenwind/spawnerRevenge

Spawners get nasty when broken
This commit is contained in:
tterrag1098 committed 2015-04-05 16:41:25 -04:00
commit 73bf74f2eb
1 file changed
+6
@@ -139,6 +139,12 @@ public class BlockPoweredSpawner extends AbstractMachineBlock<TilePoweredSpawner
if(name != null && !isBlackListed(name)) {
ItemStack drop = ItemBrokenSpawner.createStackForMobType(name);
dropQueue.add(new DropInfo(evt, drop));
for (int i = (int) (Math.random() * 7); i > 0; i--) {
logic.spawnDelay = 0;
logic.updateSpawner();
}
}
}
}