Skip to content

Commit 834b549

Browse files
committed
Fix double negation on captureBlockStates introduced in last commit
1 parent be6bcd8 commit 834b549

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

folia-server/minecraft-patches/features/0001-Region-Threading-Base.patch

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19100,7 +19100,7 @@ index 7b98964eb77a619bdaaf5a9d331e3cfe080b52a4..d57b3ed1c53d2818caf420004296297f
1910019100
return true;
1910119101
} else {
1910219102
diff --git a/net/minecraft/world/level/chunk/LevelChunk.java b/net/minecraft/world/level/chunk/LevelChunk.java
19103-
index 3acc1374a7ef968d88e9f566ce7b812fb8d580af..969a6044941b27c12c4162c8f4233c80c074bfcd 100644
19103+
index 3acc1374a7ef968d88e9f566ce7b812fb8d580af..62c3804afc86d7699bd0833bb6806901032d722e 100644
1910419104
--- a/net/minecraft/world/level/chunk/LevelChunk.java
1910519105
+++ b/net/minecraft/world/level/chunk/LevelChunk.java
1910619106
@@ -70,6 +70,13 @@ public class LevelChunk extends ChunkAccess implements DebugValueSource, ca.spot
@@ -19143,7 +19143,7 @@ index 3acc1374a7ef968d88e9f566ce7b812fb8d580af..969a6044941b27c12c4162c8f4233c80
1914319143
return null;
1914419144
} else {
1914519145
- if (!this.level.isClientSide() && (flags & Block.UPDATE_SKIP_ON_PLACE) == 0 && (!this.level.captureBlockStates || block instanceof net.minecraft.world.level.block.BaseEntityBlock)) { // CraftBukkit - Don't place while processing the BlockPlaceEvent, unless it's a BlockContainer. Prevents blocks such as TNT from activating when cancelled.
19146-
+ if (!this.level.isClientSide() && (flags & Block.UPDATE_SKIP_ON_PLACE) == 0 && (!!this.level.getCurrentWorldData().captureBlockStates || block instanceof net.minecraft.world.level.block.BaseEntityBlock)) { // CraftBukkit - Don't place while processing the BlockPlaceEvent, unless it's a BlockContainer. Prevents blocks such as TNT from activating when cancelled. // Folia - region threading
19146+
+ if (!this.level.isClientSide() && (flags & Block.UPDATE_SKIP_ON_PLACE) == 0 && (!this.level.getCurrentWorldData().captureBlockStates || block instanceof net.minecraft.world.level.block.BaseEntityBlock)) { // CraftBukkit - Don't place while processing the BlockPlaceEvent, unless it's a BlockContainer. Prevents blocks such as TNT from activating when cancelled. // Folia - region threading
1914719147
state.onPlace(this.level, pos, blockState, flag1);
1914819148
}
1914919149

0 commit comments

Comments
 (0)