Fix golem dupe (#125)

This commit is contained in:
thehoblit authored and GitHub committed 2026-05-21 23:44:47 -07:00
1 parent 23469f5e5b
commit f542637140
1 file changed
+5 -2
@@ -957,8 +957,11 @@ public class EventHandlerEntity {
@SubscribeEvent
public void golemDies(final LivingDeathEvent event) {
if (event.entity instanceof EntityGolemTH) {
((EntityGolemTH) event.entity).die();
if (event.entity.worldObj.isRemote) {
return;
}
if (event.entity instanceof EntityGolemTH golem) {
golem.die();
}
}