Made player script implementation closer to that of 1.12.

This commit is contained in:
luisc committed 2021-12-16 02:53:17 -06:00
1 parent 69b7a9aab4
commit 3a9789b3fd
12 files changed
+89 -119

No files matched your search

@@ -17,7 +17,7 @@ public class GuiScriptPlayers extends GuiScriptInterface {
public GuiScriptPlayers() {
this.handler = this.script;
Client.sendData(EnumPacketServer.ScriptPlayerGet);
Client.sendData(EnumPacketServer.ScriptPlayerGet, new Object[0]);
}
public void setGuiData(NBTTagCompound compound) {
@@ -27,11 +27,6 @@ public class GuiScriptPlayers extends GuiScriptInterface {
public void save() {
super.save();
Client.sendData(EnumPacketServer.ScriptPlayerSave, script.writeToNBT(new NBTTagCompound()));
}
public void close() {
super.close();
ScriptController.Instance.playerScripts.errored.clear();
Client.sendData(EnumPacketServer.ScriptPlayerSave, new Object[]{this.script.writeToNBT(new NBTTagCompound())});
}
}