mirror of
https://github.com/Grasscutters/Grasscutter.git
synced 2025-12-21 03:15:59 +01:00
Fix errors caused by merge + Refactor chests into GadgetChest
This commit is contained in:
@@ -579,7 +579,7 @@ public class Scene {
|
||||
List<SceneGadget> garbageGadgets = group.getGarbageGadgets();
|
||||
|
||||
if (garbageGadgets != null) {
|
||||
garbageGadgets.forEach(g -> scriptManager.createGadgets(group.id, group.block_id, g));
|
||||
garbageGadgets.forEach(g -> scriptManager.createGadget(group.id, group.block_id, g));
|
||||
}
|
||||
|
||||
// Load suites
|
||||
@@ -706,9 +706,4 @@ public class Scene {
|
||||
addEntity(entity);
|
||||
}
|
||||
}
|
||||
|
||||
public void updateGadgetState(EntityGadget gadget, int state){
|
||||
gadget.setState(state);
|
||||
broadcastPacket(new PacketGadgetStateNotify(gadget, state));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user