Present GUI should only open if its block is still present server side

This commit is contained in:
jss2a98aj committed 2021-05-07 10:27:04 -04:00
1 parent d4de411389
commit 5f8734093c
1 file changed
+3 -1
@@ -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;