Fire EntityJoinWorled event for forced entities {Players and there mounts} as well, just ignore the cancelled value.
This commit is contained in:
parent
7ea4508933
commit
e19ec10b7f
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue