Skip to content

Commit

Permalink
Fixed block dig
Browse files Browse the repository at this point in the history
  • Loading branch information
terminalsin committed Oct 23, 2020
1 parent b00154a commit 4db2ba3
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ public PacketPlayClientBlockDig(UUID player, ProtocolVersion version) {
@Override
public void read(ProtocolByteBuf byteBuf) {
// Type of the dig
this.type = DigType.values()[byteBuf.readByte()];
this.type = DigType.values()[byteBuf.readVarInt()];

// Position of the block placed
if (version.isBelow(ProtocolVersion.V1_8)) {
Expand Down

0 comments on commit 4db2ba3

Please sign in to comment.