mirror of
https://github.com/GTNewHorizons/Chisel.git
synced 2026-11-24 06:04:38 +00:00
Removed Inventory and Slot parameters
This commit is contained in:
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;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user