mirror of
https://github.com/ClassiCube/ClassiCube.git
synced 2025-09-17 03:25:14 -04:00
fix holdthis packet
This commit is contained in:
parent
d26be0d5d3
commit
6f107f1e73
@ -66,6 +66,7 @@ namespace ClassicalSharp.Network {
|
||||
#if USE16_BIT
|
||||
else if (ext == "ExtBlocks") {
|
||||
net.packetSizes[Opcode.SetBlock] += 1;
|
||||
net.packetSizes[Opcode.CpeHoldThis] += 1;
|
||||
net.packetSizes[Opcode.CpeDefineBlock] += 1;
|
||||
net.packetSizes[Opcode.CpeUndefineBlock] += 1;
|
||||
net.packetSizes[Opcode.CpeDefineBlockExt] += 1;
|
||||
|
@ -88,7 +88,7 @@ namespace ClassicalSharp.Network.Protocols {
|
||||
}
|
||||
|
||||
void HandleHoldThis() {
|
||||
BlockID block = reader.ReadUInt8();
|
||||
BlockID block = reader.ReadBlock();
|
||||
bool canChange = reader.ReadUInt8() == 0;
|
||||
|
||||
game.Inventory.CanChangeHeldBlock = true;
|
||||
|
Loading…
x
Reference in New Issue
Block a user