mirror of
https://github.com/Thorfusion/Mekanism-Community-Edition.git
synced 2026-11-28 15:46:01 +00:00
Added energy check for Atomic Disassembler hoe function
This commit is contained in:
1 parent
9d8a6c9e4c
commit
730ae963ff
1 file changed
+20
-17
@@ -169,28 +169,31 @@ public class ItemAtomicDisassembler extends ItemEnergized
|
||||
}
|
||||
}
|
||||
|
||||
switch(getEfficiency(stack))
|
||||
if(getEnergy(stack) > 0)
|
||||
{
|
||||
case 20:
|
||||
for(int x1 = x-1; x1 <= x+1; x1++)
|
||||
{
|
||||
for(int z1 = z-1; z1 <= z+1; z1++)
|
||||
switch(getEfficiency(stack))
|
||||
{
|
||||
case 20:
|
||||
for(int x1 = x-1; x1 <= x+1; x1++)
|
||||
{
|
||||
useHoe(stack, player, world, x1, y, z1, side);
|
||||
for(int z1 = z-1; z1 <= z+1; z1++)
|
||||
{
|
||||
useHoe(stack, player, world, x1, y, z1, side);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
break;
|
||||
case 128:
|
||||
for(int x1 = x-2; x1 <= x+2; x1++)
|
||||
{
|
||||
for(int z1 = z-2; z1 <= z+2; z1++)
|
||||
|
||||
break;
|
||||
case 128:
|
||||
for(int x1 = x-2; x1 <= x+2; x1++)
|
||||
{
|
||||
useHoe(stack, player, world, x1, y, z1, side);
|
||||
for(int z1 = z-2; z1 <= z+2; z1++)
|
||||
{
|
||||
useHoe(stack, player, world, x1, y, z1, side);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
break;
|
||||
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
return true;
|
||||
|
||||
Reference in new issue
Block a user