Addition to Fix right click behavior for metaitems.

This commit is contained in:
Exidex 2017-04-02 01:54:12 +02:00
parent dc984eaacf
commit 8475937153

View file

@ -174,13 +174,13 @@ public abstract class GT_MetaBase_Item extends GT_Generic_Item implements ISpeci
for (IItemBehaviour<GT_MetaBase_Item> tBehavior : tList) {
if (tBehavior.onItemUseFirst(this, aStack, aPlayer, aWorld, pos, side, hitX, hitY, hitZ, hand)) {
if (aStack.stackSize <= 0) aPlayer.setHeldItem(hand, null);
return EnumActionResult.PASS;
return EnumActionResult.SUCCESS;
}
}
}
if (aStack.stackSize <= 0) {
aPlayer.setHeldItem(hand, null);
return EnumActionResult.PASS;
return EnumActionResult.SUCCESS;
}
return EnumActionResult.PASS;
}