fake players use items properlier
This commit is contained in:
1 parent
6d3376ca7a
commit
368e76fbd7
4 files changed
+38
No files matched your search
@@ -247,6 +247,12 @@ public class EntityPlayerActionPack
|
||||
break;
|
||||
}
|
||||
}
|
||||
ItemStack handItem = player.getStackInHand(hand);
|
||||
ActionResult result =player.interactionManager.interactItem(player, player.getServerWorld(), handItem, hand);
|
||||
if (result == ActionResult.SUCCESS)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user