mirror of
https://github.com/Minestom/Minestom.git
synced 2024-11-18 16:45:22 +01:00
Fix block change packet
This commit is contained in:
parent
26b9ebc3f5
commit
c0c19a1e44
@ -91,7 +91,7 @@ public class BlockPlacementListener {
|
|||||||
//after rapid invalid block placements
|
//after rapid invalid block placements
|
||||||
BlockChangePacket blockChangePacket = new BlockChangePacket();
|
BlockChangePacket blockChangePacket = new BlockChangePacket();
|
||||||
blockChangePacket.blockPosition = blockPosition;
|
blockChangePacket.blockPosition = blockPosition;
|
||||||
blockChangePacket.blockStateId = Block.AIR.getId();
|
blockChangePacket.blockStateId = Block.AIR.getStateId();
|
||||||
player.getPlayerConnection().sendPacket(blockChangePacket);
|
player.getPlayerConnection().sendPacket(blockChangePacket);
|
||||||
}
|
}
|
||||||
return;
|
return;
|
||||||
|
Loading…
Reference in New Issue
Block a user