From 2e10f10197ce6e79e46518e620c7f5a192da8a79 Mon Sep 17 00:00:00 2001 From: gigabit101 Date: Tue, 1 Mar 2016 16:13:53 +0000 Subject: [PATCH] closes #368 --- src/main/java/techreborn/items/tools/ItemChainsaw.java | 2 +- src/main/java/techreborn/items/tools/ItemDrill.java | 2 +- src/main/java/techreborn/items/tools/ItemJackhammer.java | 2 +- src/main/java/techreborn/items/tools/ItemOmniTool.java | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/main/java/techreborn/items/tools/ItemChainsaw.java b/src/main/java/techreborn/items/tools/ItemChainsaw.java index 358309fb8..9068e4fee 100644 --- a/src/main/java/techreborn/items/tools/ItemChainsaw.java +++ b/src/main/java/techreborn/items/tools/ItemChainsaw.java @@ -82,7 +82,7 @@ public class ItemChainsaw extends ItemAxe implements IEnergyItemInfo, ITexturedI @Override public boolean onItemUse(ItemStack stack, EntityPlayer playerIn, World worldIn, BlockPos pos, EnumFacing side, float hitX, float hitY, float hitZ) { - return TorchHelper.placeTorch(stack, playerIn, worldIn, pos.getX(), pos.getY(), pos.getZ(), side.getIndex(), hitX, hitY, hitZ); + return TorchHelper.placeTorch(stack, playerIn, worldIn, pos, side, hitX, hitY, hitZ); } @Override diff --git a/src/main/java/techreborn/items/tools/ItemDrill.java b/src/main/java/techreborn/items/tools/ItemDrill.java index 6e9bbe180..d3abf4da5 100644 --- a/src/main/java/techreborn/items/tools/ItemDrill.java +++ b/src/main/java/techreborn/items/tools/ItemDrill.java @@ -75,7 +75,7 @@ public class ItemDrill extends ItemPickaxe implements IEnergyItemInfo, ITextured @Override public boolean onItemUse(ItemStack stack, EntityPlayer playerIn, World worldIn, BlockPos pos, EnumFacing side, float hitX, float hitY, float hitZ) { - return TorchHelper.placeTorch(stack, playerIn, worldIn, pos.getX(), pos.getY(), pos.getZ(), side.getIndex(), hitX, hitY, hitZ); + return TorchHelper.placeTorch(stack, playerIn, worldIn, pos, side, hitX, hitY, hitZ); } @Override diff --git a/src/main/java/techreborn/items/tools/ItemJackhammer.java b/src/main/java/techreborn/items/tools/ItemJackhammer.java index 78fde5578..c250fd894 100644 --- a/src/main/java/techreborn/items/tools/ItemJackhammer.java +++ b/src/main/java/techreborn/items/tools/ItemJackhammer.java @@ -80,7 +80,7 @@ public class ItemJackhammer extends ItemPickaxe implements IEnergyItemInfo, ITex @Override public boolean onItemUse(ItemStack stack, EntityPlayer playerIn, World worldIn, BlockPos pos, EnumFacing side, float hitX, float hitY, float hitZ) { - return TorchHelper.placeTorch(stack, playerIn, worldIn, pos.getX(), pos.getY(), pos.getZ(), side.getIndex(), hitX, hitY, hitZ); + return TorchHelper.placeTorch(stack, playerIn, worldIn, pos, side, hitX, hitY, hitZ); } @Override diff --git a/src/main/java/techreborn/items/tools/ItemOmniTool.java b/src/main/java/techreborn/items/tools/ItemOmniTool.java index 5430f588f..21df9d3b8 100644 --- a/src/main/java/techreborn/items/tools/ItemOmniTool.java +++ b/src/main/java/techreborn/items/tools/ItemOmniTool.java @@ -86,7 +86,7 @@ public class ItemOmniTool extends ItemPickaxe implements IEnergyItemInfo, ITextu @Override public boolean onItemUse(ItemStack stack, EntityPlayer playerIn, World worldIn, BlockPos pos, EnumFacing side, float hitX, float hitY, float hitZ) { - return TorchHelper.placeTorch(stack, playerIn, worldIn, pos.getX(), pos.getY(), pos.getZ(), side.getIndex(), hitX, hitY, hitZ); + return TorchHelper.placeTorch(stack, playerIn, worldIn, pos, side, hitX, hitY, hitZ); } @Override