Fix block change packet

This commit is contained in:
TheMode 2021-06-17 15:59:48 +02:00
parent 26b9ebc3f5
commit c0c19a1e44

View File

@ -91,7 +91,7 @@ public class BlockPlacementListener {
//after rapid invalid block placements
BlockChangePacket blockChangePacket = new BlockChangePacket();
blockChangePacket.blockPosition = blockPosition;
blockChangePacket.blockStateId = Block.AIR.getId();
blockChangePacket.blockStateId = Block.AIR.getStateId();
player.getPlayerConnection().sendPacket(blockChangePacket);
}
return;