mirror of
https://github.com/EssentialsX/Essentials.git
synced 2024-11-02 17:09:58 +01:00
Merge pull request #502 from afistofirony/patch-1
Changing a spawner should update its BlockState.
This commit is contained in:
commit
8f1f68f2be
@ -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 New Issue
Block a user