Fixed Wrench working when player is not sneaking
This commit is contained in:
@@ -6,6 +6,7 @@
|
|||||||
- Fixed bug where Disk Manipulator doesn't save disks (raoulvdberge)
|
- Fixed bug where Disk Manipulator doesn't save disks (raoulvdberge)
|
||||||
- Fixed Disk Drive stored quantity GUI text hovering over other text (raoulvdberge)
|
- Fixed Disk Drive stored quantity GUI text hovering over other text (raoulvdberge)
|
||||||
- Fixed External Storage being in item and fluid mode at the same time (raoulvdberge)
|
- Fixed External Storage being in item and fluid mode at the same time (raoulvdberge)
|
||||||
|
- Fixed Wrench working when player is not sneaking (raoulvdberge)
|
||||||
|
|
||||||
### 1.2.3
|
### 1.2.3
|
||||||
- Fixed fluid cache updating wrongly (raoulvdberge)
|
- Fixed fluid cache updating wrongly (raoulvdberge)
|
||||||
|
|||||||
@@ -67,7 +67,7 @@ public class ItemWrench extends ItemBase {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public EnumActionResult onItemUse(ItemStack stack, EntityPlayer player, World world, BlockPos pos, EnumHand hand, EnumFacing facing, float hitX, float hitY, float hitZ) {
|
public EnumActionResult onItemUse(ItemStack stack, EntityPlayer player, World world, BlockPos pos, EnumHand hand, EnumFacing facing, float hitX, float hitY, float hitZ) {
|
||||||
if (world.isRemote) {
|
if (world.isRemote || !player.isSneaking()) {
|
||||||
return EnumActionResult.PASS;
|
return EnumActionResult.PASS;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user