mirror of
https://github.com/MinecraftForge/MinecraftForge.git
synced 2026-11-21 20:52:34 +00:00
Fire EntityJoinWorled event for forced entities {Players and there mounts} as well, just ignore the cancelled value.
This commit is contained in:
1 parent
7ea4508933
commit
e19ec10b7f
1 file changed
+1
-1
@@ -199,7 +199,7 @@
|
||||
this.updateAllPlayersSleepingFlag();
|
||||
+ }
|
||||
+
|
||||
+ if (!flag && MinecraftForge.EVENT_BUS.post(new EntityJoinWorldEvent(par1Entity, this)))
|
||||
+ if (MinecraftForge.EVENT_BUS.post(new EntityJoinWorldEvent(par1Entity, this)) && !flag)
|
||||
+ {
|
||||
+ return false;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user