IItemCustom:

-Hid some internal script execution functions from the player.
This commit is contained in:
Luis C.M committed 2022-06-13 21:50:14 -05:00
1 parent 180b798773
commit 5292916ef4
1 file changed
+1 -1
@@ -62,7 +62,7 @@ public class ItemScripted extends Item implements ItemRenderInterface {
public ItemStack onItemRightClick(ItemStack stack, World world, EntityPlayer entityPlayer)
{
if(entityPlayer.isSneaking()) {
if(entityPlayer.isSneaking() && entityPlayer.capabilities.isCreativeMode) {
CustomNpcs.proxy.openGui(0, 0, 0, EnumGuiType.ScriptItem, entityPlayer);
}
entityPlayer.setItemInUse(stack, this.getMaxItemUseDuration(stack));