forked from mirror/Folia
Fix missing captureBlockStates usage
Needs to be redirected to the regionized world data.
This commit is contained in:
parent
308d1ca5dc
commit
bf7ba50dcd
@ -21543,6 +21543,19 @@ index 09c85ed428b8eaf51f8b3c6e45cce925f05ab354..3d797880b5964dd07f3757495ea1255a
|
||||
this.structureCheck.incrementReference(structureStart.getChunkPos(), structureStart.getStructure());
|
||||
}
|
||||
|
||||
diff --git a/src/main/java/net/minecraft/world/level/block/BedBlock.java b/src/main/java/net/minecraft/world/level/block/BedBlock.java
|
||||
index d1d5363ab1742add8ff45507a303106f4d65f52f..372e2c8c693fd77d7ff37bf4fbd24eb0e275911f 100644
|
||||
--- a/src/main/java/net/minecraft/world/level/block/BedBlock.java
|
||||
+++ b/src/main/java/net/minecraft/world/level/block/BedBlock.java
|
||||
@@ -363,7 +363,7 @@ public class BedBlock extends HorizontalDirectionalBlock implements EntityBlock
|
||||
|
||||
world.setBlock(blockposition1, (BlockState) state.setValue(BedBlock.PART, BedPart.HEAD), 3);
|
||||
// CraftBukkit start - SPIGOT-7315: Don't updated if we capture block states
|
||||
- if (world.captureBlockStates) {
|
||||
+ if (world.getCurrentWorldData().captureBlockStates) { // Folia - region threading
|
||||
return;
|
||||
}
|
||||
// CraftBukkit end
|
||||
diff --git a/src/main/java/net/minecraft/world/level/block/Block.java b/src/main/java/net/minecraft/world/level/block/Block.java
|
||||
index 4f91e4832a94c3facbc711fcae4cb5ad540a5ca0..e5ca38b375becfb3a10fb94739bdaed354c426c6 100644
|
||||
--- a/src/main/java/net/minecraft/world/level/block/Block.java
|
||||
|
Loading…
Reference in New Issue
Block a user