mirror of
https://github.com/GTNewHorizons/Botania.git
synced 2026-11-14 01:04:16 +00:00
The Terra Shatterer now only places torches when sneaking. Clicking normally toggles it on and off.
This commit is contained in:
1 parent
7c29b34892
commit
58043a8279
1 file changed
+5
@@ -106,6 +106,11 @@ public class ItemTerraPick extends ItemManasteelPick implements IManaItem, ISequ
|
||||
|
||||
return par1ItemStack;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean onItemUse(ItemStack stack, EntityPlayer player, World world, int x, int y, int z, int s, float sx, float sy, float sz) {
|
||||
return player.isSneaking() && super.onItemUse(stack, player, world, x, y, z, s, sx, sy, sz);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onUpdate(ItemStack par1ItemStack, World par2World, Entity par3Entity, int par4, boolean par5) {
|
||||
|
||||
Reference in new issue
Block a user