mirror of
https://github.com/Thorfusion/Mekanism-Community-Edition.git
synced 2026-11-26 23:03:01 +00:00
Add support for adding/removing item to gas conversions via crafttweaker
also run formatter to fix spacing/ensure import order is correct
This commit is contained in:
20 files changed
+398
-104
No files matched your search
@@ -192,8 +192,7 @@ public class ItemAtomicDisassembler extends ItemEnergized {
|
||||
break;
|
||||
}
|
||||
return EnumActionResult.SUCCESS;
|
||||
}
|
||||
else if (!player.isSneaking() && block == Blocks.GRASS) {
|
||||
} else if (!player.isSneaking() && block == Blocks.GRASS) {
|
||||
if (useShovel(stack, player, world, pos, side) == EnumActionResult.FAIL) {
|
||||
return EnumActionResult.FAIL;
|
||||
}
|
||||
@@ -249,7 +248,7 @@ public class ItemAtomicDisassembler extends ItemEnergized {
|
||||
}
|
||||
return EnumActionResult.PASS;
|
||||
}
|
||||
|
||||
|
||||
private EnumActionResult useShovel(ItemStack stack, EntityPlayer playerIn, World worldIn, BlockPos pos, EnumFacing facing) {
|
||||
if (!playerIn.canPlayerEdit(pos.offset(facing), facing, stack)) {
|
||||
return EnumActionResult.FAIL;
|
||||
|
||||
Reference in new issue
Block a user