mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-23 21:49:53 +00:00
Made constant BlockPos calculateLogBaseTwo calculation explicit, enabled player events by default.
This commit is contained in:
1 parent
699182f4c0
commit
047552d9e5
7 files changed
+12
-30
No files matched your search
@@ -70,6 +70,7 @@ public class GuiScriptInterface extends GuiNPCInterface implements GuiYesNoCallb
|
||||
}
|
||||
|
||||
List<String> list = new ArrayList<String>();
|
||||
list.add("playerscript.disabled");
|
||||
list.add("playerscript.init");
|
||||
list.add("playerscript.tick");
|
||||
list.add("playerscript.interact");
|
||||
|
||||
@@ -16,7 +16,8 @@ public class GuiScriptPlayers extends GuiScriptInterface {
|
||||
|
||||
public GuiScriptPlayers() {
|
||||
this.handler = this.script;
|
||||
Client.sendData(EnumPacketServer.ScriptPlayerGet, new Object[0]);
|
||||
//Client.sendData(EnumPacketServer.ScriptPlayerGet, new Object[0]);
|
||||
Client.sendData(EnumPacketServer.ScriptPlayerGet);
|
||||
}
|
||||
|
||||
public void setGuiData(NBTTagCompound compound) {
|
||||
@@ -26,6 +27,7 @@ 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, new Object[]{this.script.writeToNBT(new NBTTagCompound())});
|
||||
Client.sendData(EnumPacketServer.ScriptPlayerSave, script.writeToNBT(new NBTTagCompound()));
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user