Change trigger calculation so entities get some time to age before refiring the event.

This commit is contained in:
Christian committed 2013-09-06 16:46:44 -04:00
1 parent 89becaca02
commit 6b54b52ec4
1 file changed
+1 -1
@@ -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)
+ {