mirror of
https://github.com/GeyserMC/Geyser.git
synced 2024-08-14 23:57:35 +00:00
Only apply door fix when we can actually access the old blockstate (#4827)
This commit is contained in:
parent
74cabed674
commit
cbd59de37b
1 changed files with 1 additions and 1 deletions
|
@ -40,7 +40,7 @@ public class DoorBlock extends Block {
|
|||
// Needed to check whether we must force the client to update the door state.
|
||||
String doubleBlockHalf = state.getValue(Properties.DOUBLE_BLOCK_HALF);
|
||||
|
||||
if (doubleBlockHalf.equals("lower")) {
|
||||
if (!session.getGeyser().getWorldManager().hasOwnChunkCache() && doubleBlockHalf.equals("lower")) {
|
||||
BlockState oldBlockState = session.getGeyser().getWorldManager().blockAt(session, position);
|
||||
// If these are the same, it means that we already updated the lower door block (manually in the workaround below),
|
||||
// and we do not need to update the block in the cache/on the client side using the super.updateBlock() method again.
|
||||
|
|
Loading…
Reference in a new issue