Skip to content

Commit cbd59de

Browse files
Only apply door fix when we can actually access the old blockstate (#4827)
1 parent 74cabed commit cbd59de

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

core/src/main/java/org/geysermc/geyser/level/block/type/DoorBlock.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ public void updateBlock(GeyserSession session, BlockState state, Vector3i positi
4040
// Needed to check whether we must force the client to update the door state.
4141
String doubleBlockHalf = state.getValue(Properties.DOUBLE_BLOCK_HALF);
4242

43-
if (doubleBlockHalf.equals("lower")) {
43+
if (!session.getGeyser().getWorldManager().hasOwnChunkCache() && doubleBlockHalf.equals("lower")) {
4444
BlockState oldBlockState = session.getGeyser().getWorldManager().blockAt(session, position);
4545
// If these are the same, it means that we already updated the lower door block (manually in the workaround below),
4646
// and we do not need to update the block in the cache/on the client side using the super.updateBlock() method again.

0 commit comments

Comments
 (0)