mirror of
https://github.com/EssentialsX/Essentials.git
synced 2024-09-06 04:58:00 +02:00
Changing a spawner should update its BlockState.
This commit is contained in:
parent
9300529113
commit
f26466831a
@ -66,6 +66,7 @@ public class Commandspawner extends EssentialsCommand
|
||||
CreatureSpawner spawner = (CreatureSpawner)target.getBlock().getState();
|
||||
spawner.setSpawnedType(mob.getType());
|
||||
spawner.setDelay(delay);
|
||||
spawner.update();
|
||||
}
|
||||
catch (Throwable ex)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user