Fix errors caused by merge + Refactor chests into GadgetChest

This commit is contained in:
Melledy
2022-05-18 02:36:50 -07:00
parent 94997276db
commit b375881a3e
5 changed files with 64 additions and 41 deletions

View File

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