diff --git a/MCGalaxy/Commands/Chat/CmdEmote.cs b/MCGalaxy/Commands/Chat/CmdEmote.cs index 0c94301e2..3e18ef65e 100644 --- a/MCGalaxy/Commands/Chat/CmdEmote.cs +++ b/MCGalaxy/Commands/Chat/CmdEmote.cs @@ -26,11 +26,10 @@ namespace MCGalaxy.Commands.Chatting { public override void Use(Player p, string message) { p.parseEmotes = !p.parseEmotes; - bool addToList = p.parseEmotes != ServerConfig.ParseEmotes; if (!addToList) Server.noEmotes.Remove(p.name); else Server.noEmotes.AddIfNotExists(p.name); - Server.noEmotes.Save(); + Server.noEmotes.Save(); Player.Message(p, "Emote parsing is {0}.", p.parseEmotes ? "enabled" : "disabled"); } diff --git a/MCGalaxy/Network/Packets/Packet.cs b/MCGalaxy/Network/Packets/Packet.cs index bf3e67faf..e7134f2c5 100644 --- a/MCGalaxy/Network/Packets/Packet.cs +++ b/MCGalaxy/Network/Packets/Packet.cs @@ -41,12 +41,12 @@ namespace MCGalaxy.Network { return buffer; } - /// Constructs a ping packet. + /// Constructs a ping packet. public static byte[] Ping() { return new byte[] { Opcode.Ping }; } - /// Constructs a packet that specified map data is about to be sent. + /// Constructs a packet that specified map data is about to be sent. public static byte[] LevelInitalise() { return new byte[] { Opcode.LevelInitialise }; } diff --git a/MCGalaxy/Network/Player.Networking.cs b/MCGalaxy/Network/Player.Networking.cs index b1774cb32..7597c5668 100644 --- a/MCGalaxy/Network/Player.Networking.cs +++ b/MCGalaxy/Network/Player.Networking.cs @@ -38,7 +38,7 @@ namespace MCGalaxy { void HandleExtEntry(byte[] buffer, int offset) { string extName = NetUtils.ReadString(buffer, offset + 1); - int extVersion = NetUtils.ReadI32(buffer, offset + 65)); + int extVersion = NetUtils.ReadI32(buffer, offset + 65); AddExtension(extName, extVersion); extensionCount--; CheckReadAllExtensions();