summaryrefslogtreecommitdiffstats
path: root/PacketParser.cpp
diff options
context:
space:
mode:
authorLaG1924 <12997935+LaG1924@users.noreply.github.com>2017-04-21 15:31:43 +0200
committerLaG1924 <12997935+LaG1924@users.noreply.github.com>2017-04-21 15:31:43 +0200
commit71760514fc044f273914c17b1510fa3cf10419b3 (patch)
tree72f822efde300d8e1e9de1cc578d431ff72e0e03 /PacketParser.cpp
parent2017-04-15 (diff)
downloadAltCraft-71760514fc044f273914c17b1510fa3cf10419b3.tar
AltCraft-71760514fc044f273914c17b1510fa3cf10419b3.tar.gz
AltCraft-71760514fc044f273914c17b1510fa3cf10419b3.tar.bz2
AltCraft-71760514fc044f273914c17b1510fa3cf10419b3.tar.lz
AltCraft-71760514fc044f273914c17b1510fa3cf10419b3.tar.xz
AltCraft-71760514fc044f273914c17b1510fa3cf10419b3.tar.zst
AltCraft-71760514fc044f273914c17b1510fa3cf10419b3.zip
Diffstat (limited to '')
-rw-r--r--PacketParser.cpp9
1 files changed, 6 insertions, 3 deletions
diff --git a/PacketParser.cpp b/PacketParser.cpp
index f4b3889..488c812 100644
--- a/PacketParser.cpp
+++ b/PacketParser.cpp
@@ -33,7 +33,10 @@ void PacketParser::ParseLogin(Packet &packet) {
ParseLogin0x02(packet);
break;
default:
- throw 112;
+ {
+ int i = packet.GetId();
+ //throw 112;
+ }
}
}
@@ -99,7 +102,7 @@ void PacketParser::ParsePlay0x0D(Packet &packet) {
}
void PacketParser::ParsePlay0x2B(Packet &packet) {
- packet.ParseField(Byte);
+ packet.ParseField(Byte8_t);
packet.ParseField(Float);
packet.ParseField(Float);
}
@@ -114,7 +117,7 @@ void PacketParser::ParsePlay0x2E(Packet &packet) {
packet.ParseField(Double);
packet.ParseField(Float);
packet.ParseField(Float);
- packet.ParseField(Byte);
+ packet.ParseField(Byte8_t);
packet.ParseField(VarInt);
}