1
0
mirror of https://github.com/essentials/Essentials.git synced 2025-02-22 23:43:46 +01:00

Changing a spawner should update its BlockState.

This commit is contained in:
Sahir 2013-06-25 17:07:43 +04:00
parent 5ee0fe301e
commit d6f2ea3fc5

View File

@ -66,6 +66,7 @@ public class Commandspawner extends EssentialsCommand
CreatureSpawner spawner = (CreatureSpawner)target.getBlock().getState(); CreatureSpawner spawner = (CreatureSpawner)target.getBlock().getState();
spawner.setSpawnedType(mob.getType()); spawner.setSpawnedType(mob.getType());
spawner.setDelay(delay); spawner.setDelay(delay);
spawner.update();
} }
catch (Throwable ex) catch (Throwable ex)
{ {