mirror of
https://github.com/Minestom/Minestom.git
synced 2025-02-07 16:01:55 +01:00
Smarter code
This commit is contained in:
parent
9a4fdae38a
commit
744b8e7886
@ -99,7 +99,7 @@ public class BlockPlacementListener {
|
||||
blockPosition.add(offsetX, offsetY, offsetZ);
|
||||
|
||||
if (!canPlaceBlock) {
|
||||
if (usedItem.getMaterial().isBlock()) {
|
||||
if (useMaterial.isBlock()) {
|
||||
//Send a block change with AIR as block to keep the client in sync,
|
||||
//using refreshChunk results in the client not being in sync
|
||||
//after rapid invalid block placements
|
||||
|
Loading…
Reference in New Issue
Block a user