mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-13 18:24:10 +00:00
IItemCustom:
-Hid some internal script execution functions from the player.
This commit is contained in:
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));
|
||||
|
||||
Reference in new issue
Block a user