From 5f8734093c85cfcb38e2965e9a387bd073a61de0 Mon Sep 17 00:00:00 2001 From: jss2a98aj Date: Fri, 7 May 2021 10:27:04 -0400 Subject: [PATCH] Present GUI should only open if its block is still present server side --- src/main/java/team/chisel/block/BlockPresent.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/main/java/team/chisel/block/BlockPresent.java b/src/main/java/team/chisel/block/BlockPresent.java index 0a6653ea..fa1ec268 100644 --- a/src/main/java/team/chisel/block/BlockPresent.java +++ b/src/main/java/team/chisel/block/BlockPresent.java @@ -109,7 +109,9 @@ public class BlockPresent extends Block implements ICarvable { @Override public boolean onBlockActivated(World world, int x, int y, int z, EntityPlayer player, int hitX, float hitY, float hitZ, float p_149727_9_) { if (!world.isSideSolid(x, y + 1, z, ForgeDirection.DOWN)) { - player.openGui(Chisel.instance, 2, world, x, y, z); + if (!world.isRemote) { + player.openGui(Chisel.instance, 2, world, x, y, z); + } return true; } return false;