diff --git a/src/main/java/emu/grasscutter/scripts/ScriptLib.java b/src/main/java/emu/grasscutter/scripts/ScriptLib.java index 84297bd5c..871ad828c 100644 --- a/src/main/java/emu/grasscutter/scripts/ScriptLib.java +++ b/src/main/java/emu/grasscutter/scripts/ScriptLib.java @@ -171,6 +171,7 @@ public class ScriptLib { } worktop.addWorktopOptions(worktopOptions); + var scene = this.getSceneScriptManager().getScene(); // Done in order to synchronize with addEntities in Scene.class. synchronized (this.getSceneScriptManager().getScene()) { scene.broadcastPacket(new PacketWorktopOptionNotify(gadget));