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

@@ -437,8 +437,8 @@ public class ScriptLib {
return 1;
}
if(entity instanceof EntityGadget entityGadget){
getSceneScriptManager().getScene().updateGadgetState(entityGadget, state);
if (entity instanceof EntityGadget entityGadget) {
entityGadget.updateState(state);
}
return 0;