All items compiling

This commit is contained in:
Vincent Lee committed 2017-01-05 02:16:04 -06:00
1 parent d1ba09bf89
commit 641dc80490
77 files changed
+409 -341

No files matched your search

@@ -76,11 +76,12 @@ public abstract class ItemBrewBase extends ItemMod implements IBrewItem, IPickup
@Nonnull
@Override
public ActionResult<ItemStack> onItemRightClick(@Nonnull ItemStack stack, World world, EntityPlayer player, EnumHand hand) {
public ActionResult<ItemStack> onItemRightClick(World world, EntityPlayer player, @Nonnull EnumHand hand) {
player.setActiveHand(hand);
return ActionResult.newResult(EnumActionResult.SUCCESS, stack);
return ActionResult.newResult(EnumActionResult.SUCCESS, player.getHeldItem(hand));
}
@Nonnull
@Override
public ItemStack onItemUseFinish(@Nonnull ItemStack stack, World world, EntityLivingBase living) {
if(!world.isRemote) {
@@ -101,7 +102,7 @@ public abstract class ItemBrewBase extends ItemMod implements IBrewItem, IPickup
return baseItem.copy();
else {
ItemStack copy = stack.copy();
copy.stackSize = 0;
copy.setCount(0);
return copy;
}
}