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:
pupnewfster committed 2019-05-20 13:21:42 -04:00
1 parent d6bca945fe
commit b4572a2023
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;