mirror of
https://github.com/essentials/Essentials.git
synced 2025-08-17 03:54:19 +02:00
Changing a spawner should update its BlockState.
This commit is contained in:
@@ -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)
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user