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:
parent
5ee0fe301e
commit
d6f2ea3fc5
@ -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)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user