From 6b54b52ec4ba2a713995bb62dadc2a853ee24e4e Mon Sep 17 00:00:00 2001 From: Christian Date: Fri, 6 Sep 2013 16:46:14 -0400 Subject: [PATCH] Change trigger calculation so entities get some time to age before refiring the event. --- patches/minecraft/net/minecraft/entity/EntityLiving.java.patch | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/patches/minecraft/net/minecraft/entity/EntityLiving.java.patch b/patches/minecraft/net/minecraft/entity/EntityLiving.java.patch index 858bb3270f..2127d37b76 100644 --- a/patches/minecraft/net/minecraft/entity/EntityLiving.java.patch +++ b/patches/minecraft/net/minecraft/entity/EntityLiving.java.patch @@ -29,7 +29,7 @@ { this.entityAge = 0; + } -+ else if (this.entityAge % 20 == 1 && (result = ForgeEventFactory.canEntityDespawn(this)) != Result.DEFAULT) ++ else if ((this.entityAge & 0x1F) == 0x1F && (result = ForgeEventFactory.canEntityDespawn(this)) != Result.DEFAULT) + { + if (result == Result.DENY) + {