Skip to content

Commit 1a7288a

Browse files
committed
Adjust unloaded chunk check for block digging
1 parent 743346a commit 1a7288a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

paper-server/patches/sources/net/minecraft/server/network/ServerGamePacketListenerImpl.java.patch

+1-1
Original file line numberDiff line numberDiff line change
@@ -1145,7 +1145,7 @@
11451145
case ABORT_DESTROY_BLOCK:
11461146
case STOP_DESTROY_BLOCK:
11471147
+ // Paper start - Don't allow digging into unloaded chunks
1148-
+ if (this.player.level().getChunkIfLoadedImmediately(pos.getX() >> 4, pos.getZ() >> 4) == null) {
1148+
+ if (this.player.level().getChunkIfLoadedImmediately(pos.getX() >> 4, pos.getZ() >> 4) == null || !this.player.canInteractWithBlock(pos, 1.0)) {
11491149
+ this.player.connection.ackBlockChangesUpTo(packet.getSequence());
11501150
+ return;
11511151
+ }

0 commit comments

Comments
 (0)