Made constant BlockPos calculateLogBaseTwo calculation explicit, enabled player events by default.

This commit is contained in:
luisc committed 2021-10-12 04:20:33 -05:00
1 parent 699182f4c0
commit 047552d9e5
7 files changed
+12 -30

No files matched your search

@@ -107,7 +107,7 @@ public class PacketHandlerServer{
else if(item.getItem() == CustomItems.teleporter)
featherPackets(type, buffer, player);
else if(type == EnumPacketServer.ScriptPlayerGet || type == EnumPacketServer.ScriptPlayerSave)
playerScriptPackets(type, buffer, player, npc);
playerScriptPackets(type, buffer, player);
else if(item.getItem() == CustomItems.scripter)
scriptPackets(type, buffer, player, npc);
else if(item.getItem() == Item.getItemFromBlock(CustomItems.waypoint) || item.getItem() == Item.getItemFromBlock(CustomItems.border) || item.getItem() == Item.getItemFromBlock(CustomItems.redstoneBlock))
@@ -130,7 +130,7 @@ public class PacketHandlerServer{
}
}
private void playerScriptPackets(EnumPacketServer type, ByteBuf buffer, EntityPlayerMP player, EntityNPCInterface npc) throws Exception {
private void playerScriptPackets(EnumPacketServer type, ByteBuf buffer, EntityPlayerMP player) throws Exception {
NBTTagCompound compound;
if(type == EnumPacketServer.ScriptPlayerGet) {
compound = ScriptController.Instance.playerScripts.writeToNBT(new NBTTagCompound());