Fire EntityJoinWorled event for forced entities {Players and there mounts} as well, just ignore the cancelled value.

This commit is contained in:
LexManos 2013-05-11 12:16:37 -07:00
parent 7ea4508933
commit e19ec10b7f
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}