Skip to content
This repository was archived by the owner on May 15, 2025. It is now read-only.
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,8 @@ public EnumActionResult onItemUse(ItemStack stack, @Nonnull EntityPlayer playerI
public boolean placeBlockAt(@Nonnull ItemStack stack, @Nonnull EntityPlayer player, World world, @Nonnull BlockPos pos, EnumFacing side, float hitX, float hitY, float hitZ, @Nonnull IBlockState newState) {
Machine machine = getMachineType(stack);
if (machine == null) return false;

if (side == null || side == EnumFacing.UP || side == EnumFacing.DOWN) side = EnumFacing.NORTH;

Machine.EnergyMode mode = machine.energyMode;

Expand Down