mirror of
https://github.com/TotalFreedomMC/TF-EssentialsX.git
synced 2025-04-27 17:09:43 +00:00
Changing a spawner should update its BlockState.
This commit is contained in:
parent
9300529113
commit
f26466831a
1 changed files with 1 additions and 0 deletions
|
@ -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…
Reference in a new issue