mirror of
https://github.com/MinecraftForge/MinecraftForge.git
synced 2026-11-13 00:37:52 +00:00
Change trigger calculation so entities get some time to age before refiring the event.
This commit is contained in:
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)
|
||||
+ {
|
||||
|
||||
Reference in new issue
Block a user