mirror of
https://github.com/CivMC/Civ.git
synced 2026-07-15 23:20:44 +00:00
Merge pull request #921 from dxminic/fix/wither-in-mob-repellator
fix: allow for event cancelling when a wither is constructed
This commit is contained in:
@@ -36,7 +36,7 @@ public class MobListener implements Listener {
|
||||
|
||||
@EventHandler(priority = EventPriority.LOW, ignoreCancelled = true)
|
||||
public void on(CreatureSpawnEvent event) {
|
||||
if (event.getSpawnReason() != CreatureSpawnEvent.SpawnReason.NATURAL) {
|
||||
if (event.getSpawnReason() != CreatureSpawnEvent.SpawnReason.NATURAL && event.getSpawnReason() != CreatureSpawnEvent.SpawnReason.BUILD_WITHER) {
|
||||
return;
|
||||
}
|
||||
if (!(event.getEntity() instanceof Monster)) {
|
||||
|
||||
Reference in New Issue
Block a user