Skip to content

Commit

Permalink
Fixed the printer crashing other mods. Yay deprecated code! Fixes Lun…
Browse files Browse the repository at this point in the history
  • Loading branch information
Lunatrius authored and MattBDev committed Oct 22, 2021
1 parent 92a495e commit 3f7b2b7
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -312,7 +312,7 @@ private boolean placeBlock(Minecraft minecraft, World world, EntityPlayer player
int side = direction.getOpposite().ordinal();

/* copypasted from n.m.client.Minecraft to sooth finicky servers */
success = !ForgeEventFactory.onPlayerInteract(minecraft.thePlayer, Action.RIGHT_CLICK_BLOCK, x, y, z, side).isCanceled();
success = !ForgeEventFactory.onPlayerInteract(minecraft.thePlayer, Action.RIGHT_CLICK_BLOCK, x, y, z, side, world).isCanceled();
if (success) {
// still not assured!
success = minecraft.playerController.onPlayerRightClick(player, world, itemStack, x, y, z, side, Vec3.createVectorHelper(x + offsetX, y + offsetY, z + offsetZ));
Expand Down

0 comments on commit 3f7b2b7

Please sign in to comment.