Removed Inventory and Slot parameters

This commit is contained in:
Cricket committed 2015-01-20 18:13:59 -05:00
1 parent c4424488de
commit 04db06a9e3
5 files changed
+5 -9

No files matched your search

@@ -105,7 +105,7 @@ public enum ChiselMode {
if (held != null && held.getItem() instanceof IChiselItem) {
world.setBlock(x, y, z, v.getBlock(), v.getBlockMeta(), 3);
boolean breakChisel = false;
if (((IChiselItem) player.getCurrentEquippedItem().getItem()).onChisel(world, player.inventory, player.inventory.currentItem, player.getCurrentEquippedItem(), v)) {
if (((IChiselItem) player.getCurrentEquippedItem().getItem()).onChisel(world, player.getCurrentEquippedItem(), v)) {
player.getCurrentEquippedItem().damageItem(1, player);
if (player.getCurrentEquippedItem().stackSize <= 0) {
player.inventory.mainInventory[player.inventory.currentItem] = null;
@@ -111,7 +111,7 @@ public class ItemChisel extends Item implements IChiselItem {
}
@Override
public boolean onChisel(World world, IInventory inv, int slot, ItemStack chisel, ICarvingVariation target) {
public boolean onChisel(World world, ItemStack chisel, ICarvingVariation target) {
return Configurations.allowChiselDamage;
}