Skip to content

Commit

Permalink
Fix #279, backpack interaction with fake players
Browse files Browse the repository at this point in the history
  • Loading branch information
copygirl committed Apr 1, 2015
1 parent f77a3a6 commit 7eee3c3
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,7 @@ public void onEntityInteract(EntityInteractEvent event) {
if (event.entity.worldObj.isRemote ||
!(event.entity instanceof EntityPlayerMP) ||
!(event.target instanceof EntityLivingBase) ||
(((EntityPlayerMP)event.entity).playerNetServerHandler == null) ||
((event.target instanceof EntityPlayer) &&
!BetterStorage.globalConfig.getBoolean(GlobalConfig.enableBackpackInteraction))) return;

Expand Down

0 comments on commit 7eee3c3

Please sign in to comment.