Fix ill-formed xml doc in Packet class

This commit is contained in:
UnknownShadow200 2017-07-27 19:11:01 +10:00
parent ed845fbe7a
commit e4353aa21d
3 changed files with 4 additions and 5 deletions

View File

@ -26,11 +26,10 @@ namespace MCGalaxy.Commands.Chatting {
public override void Use(Player p, string message) { public override void Use(Player p, string message) {
p.parseEmotes = !p.parseEmotes; p.parseEmotes = !p.parseEmotes;
bool addToList = p.parseEmotes != ServerConfig.ParseEmotes; bool addToList = p.parseEmotes != ServerConfig.ParseEmotes;
if (!addToList) Server.noEmotes.Remove(p.name); if (!addToList) Server.noEmotes.Remove(p.name);
else Server.noEmotes.AddIfNotExists(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"); Player.Message(p, "Emote parsing is {0}.", p.parseEmotes ? "enabled" : "disabled");
} }

View File

@ -41,12 +41,12 @@ namespace MCGalaxy.Network {
return buffer; return buffer;
} }
/// <summary> Constructs a ping packet. </remarks> /// <summary> Constructs a ping packet. </summary>
public static byte[] Ping() { public static byte[] Ping() {
return new byte[] { Opcode.Ping }; return new byte[] { Opcode.Ping };
} }
/// <summary> Constructs a packet that specified map data is about to be sent. </remarks> /// <summary> Constructs a packet that specified map data is about to be sent. </summary>
public static byte[] LevelInitalise() { public static byte[] LevelInitalise() {
return new byte[] { Opcode.LevelInitialise }; return new byte[] { Opcode.LevelInitialise };
} }

View File

@ -38,7 +38,7 @@ namespace MCGalaxy {
void HandleExtEntry(byte[] buffer, int offset) { void HandleExtEntry(byte[] buffer, int offset) {
string extName = NetUtils.ReadString(buffer, offset + 1); string extName = NetUtils.ReadString(buffer, offset + 1);
int extVersion = NetUtils.ReadI32(buffer, offset + 65)); int extVersion = NetUtils.ReadI32(buffer, offset + 65);
AddExtension(extName, extVersion); AddExtension(extName, extVersion);
extensionCount--; extensionCount--;
CheckReadAllExtensions(); CheckReadAllExtensions();