fake players use items properlier

This commit is contained in:
gnembon committed 2019-09-15 17:42:31 -03:00
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;
}