mirror of
https://github.com/PaperMC/Paper.git
synced 2026-11-25 10:29:41 -05:00
Made iron golems fire CreatureSpawn event. Fixes BUKKIT-1089
This commit is contained in:
1 parent
f5ce8627c6
commit
ecb00bba85
2 files changed
+7
-4
No files matched your search
@@ -42,7 +42,7 @@ public class Village {
|
||||
EntityIronGolem entityirongolem = new EntityIronGolem(this.world);
|
||||
|
||||
entityirongolem.setPosition(vec3d.a, vec3d.b, vec3d.c);
|
||||
this.world.addEntity(entityirongolem);
|
||||
this.world.addEntity(entityirongolem, org.bukkit.event.entity.CreatureSpawnEvent.SpawnReason.VILLAGE_DEFENSE); // CraftBukkit
|
||||
++this.j;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user