Fix interacting with entities.
This commit is contained in:
parent
5de6cf571c
commit
6bb769268f
1 changed files with 1 additions and 1 deletions
|
@ -336,7 +336,7 @@ public class ForgeEventFactory
|
||||||
|
|
||||||
public static boolean canInteractWith(EntityPlayer player, Entity entity)
|
public static boolean canInteractWith(EntityPlayer player, Entity entity)
|
||||||
{
|
{
|
||||||
return MinecraftForge.EVENT_BUS.post(new EntityInteractEvent(player, entity));
|
return !MinecraftForge.EVENT_BUS.post(new EntityInteractEvent(player, entity));
|
||||||
}
|
}
|
||||||
|
|
||||||
public static EnumStatus onPlayerSleepInBed(EntityPlayer player, BlockPos pos)
|
public static EnumStatus onPlayerSleepInBed(EntityPlayer player, BlockPos pos)
|
||||||
|
|
Loading…
Reference in a new issue