Temporary fix to scene reference

This commit is contained in:
Magix 2023-06-17 11:24:46 -04:00 committed by GitHub
parent 9d94888da3
commit 06d5bf7098
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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));