mirror of
https://github.com/Grasscutters/Grasscutter.git
synced 2025-03-14 07:47:25 +08:00
Fix worktop options not appearing
This commit is contained in:
parent
e32aea4d0b
commit
f51fd55cb5
@ -141,7 +141,8 @@ public class ScriptLib {
|
||||
}
|
||||
|
||||
worktop.addWorktopOptions(options);
|
||||
getSceneScriptManager().getScene().broadcastPacket(new PacketWorktopOptionNotify(gadget));
|
||||
this.getSceneScriptManager().getScene()
|
||||
.broadcastPacket(new PacketWorktopOptionNotify(gadget));
|
||||
|
||||
return 0;
|
||||
}
|
||||
@ -170,10 +171,9 @@ public class ScriptLib {
|
||||
}
|
||||
|
||||
worktop.addWorktopOptions(worktopOptions);
|
||||
|
||||
var scene = getSceneScriptManager().getScene();
|
||||
Grasscutter.getGameServer().getScheduler().scheduleDelayedTask(() -> {
|
||||
scene.broadcastPacket(new PacketWorktopOptionNotify(gadget));
|
||||
},1);
|
||||
scene.broadcastPacket(new PacketWorktopOptionNotify(gadget));
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user