Revert "Made player script implementation closer to that of 1.12."

This reverts commit 3a9789b3fd.
This commit is contained in:
luisc committed 2021-12-16 04:05:05 -06:00
1 parent 3a9789b3fd
commit 6bdc68337c
12 files changed
+120 -90

No files matched your search

@@ -114,7 +114,7 @@ public class ScriptController {
}
private File playerScriptsFile() {
return new File(this.dir, "player_scripts.json");
return new File(dir, "player_scripts.json");
}
public boolean loadPlayerScripts() {
@@ -122,10 +122,11 @@ public class ScriptController {
File file = this.playerScriptsFile();
try {
if (!file.exists()) {
if(!file.exists()) {
return false;
} else {
this.playerScripts.readFromNBT(NBTJsonUtil.LoadFile(file));
shouldSave = false;
return true;
}
} catch (Exception var3) {
@@ -146,7 +147,6 @@ public class ScriptController {
} catch (JsonException var5) {
var5.printStackTrace();
}
}
private void loadCategories(){