From 2e91e169324e4b5b19193d3909c24b847da6ccab Mon Sep 17 00:00:00 2001 From: simibubi <31564874+simibubi@users.noreply.github.com> Date: Mon, 5 Aug 2024 14:13:47 +0200 Subject: [PATCH] For your eyes only - Fixed Schematic position editor opening both on player and host player instance during LAN games #5935 #5969 --- .../com/simibubi/create/content/schematics/SchematicItem.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/main/java/com/simibubi/create/content/schematics/SchematicItem.java b/src/main/java/com/simibubi/create/content/schematics/SchematicItem.java index 2df436f7a..80298d90a 100644 --- a/src/main/java/com/simibubi/create/content/schematics/SchematicItem.java +++ b/src/main/java/com/simibubi/create/content/schematics/SchematicItem.java @@ -169,6 +169,8 @@ public class SchematicItem extends Item { if (!player.getItemInHand(hand) .hasTag()) return false; + if (!player.level.isClientSide()) + return true; DistExecutor.unsafeRunWhenOn(Dist.CLIENT, () -> this::displayBlueprintScreen); return true; }