mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-16 16:34: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
@@ -17,7 +17,7 @@ public class GuiScriptPlayers extends GuiScriptInterface {
|
||||
|
||||
public GuiScriptPlayers() {
|
||||
this.handler = this.script;
|
||||
Client.sendData(EnumPacketServer.ScriptPlayerGet, new Object[0]);
|
||||
Client.sendData(EnumPacketServer.ScriptPlayerGet);
|
||||
}
|
||||
|
||||
public void setGuiData(NBTTagCompound compound) {
|
||||
@@ -27,6 +27,11 @@ public class GuiScriptPlayers extends GuiScriptInterface {
|
||||
|
||||
public void save() {
|
||||
super.save();
|
||||
Client.sendData(EnumPacketServer.ScriptPlayerSave, new Object[]{this.script.writeToNBT(new NBTTagCompound())});
|
||||
Client.sendData(EnumPacketServer.ScriptPlayerSave, script.writeToNBT(new NBTTagCompound()));
|
||||
}
|
||||
|
||||
public void close() {
|
||||
super.close();
|
||||
ScriptController.Instance.playerScripts.errored.clear();
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user