mirror of
https://github.com/ClassiCube/MCGalaxy.git
synced 2025-09-24 05:03:34 -04:00
Fix ill-formed xml doc in Packet class
This commit is contained in:
parent
ed845fbe7a
commit
e4353aa21d
@ -26,7 +26,6 @@ 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);
|
||||||
|
@ -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 };
|
||||||
}
|
}
|
||||||
|
@ -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();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user