mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-16 14:14:46 +00:00
Revert "Made player script implementation closer to that of 1.12."
This reverts commit 3a9789b3fd.
This commit is contained in:
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(){
|
||||
|
||||
Reference in new issue
Block a user