diff --git a/common/src/main/java/whocraft/tardis_refined/common/blockentity/shell/GlobalShellBlockEntity.java b/common/src/main/java/whocraft/tardis_refined/common/blockentity/shell/GlobalShellBlockEntity.java index 27a299fe..76c4765d 100644 --- a/common/src/main/java/whocraft/tardis_refined/common/blockentity/shell/GlobalShellBlockEntity.java +++ b/common/src/main/java/whocraft/tardis_refined/common/blockentity/shell/GlobalShellBlockEntity.java @@ -150,7 +150,7 @@ public boolean onRightClick(BlockState blockState, ItemStack stack, Level level, } if (!exteriorManager.locked()) { //If the Tardis thinks it is not locked, open this shell's door - level.setBlock(blockPos, blockState.cycle(GlobalShellBlock.OPEN), Block.UPDATE_ALL); //Cycle the door to open/closed + level.setBlock(blockPos, blockState.setValue(GlobalShellBlock.OPEN, !exteriorManager.locked()), Block.UPDATE_ALL); //Cycle the door to open/closed tardisLevelOperator.setDoorClosed(blockState.getValue(GlobalShellBlock.OPEN)); //Now update both the internal door and re-update the external shell for good measure too. return true; }