make block change detector's gui accessible again
@@ -5,7 +5,6 @@ import net.geforcemods.securitycraft.blockentities.BlockChangeDetectorBlockEntit
import net.geforcemods.securitycraft.util.BlockUtils;
import net.geforcemods.securitycraft.util.LevelUtils;
import net.geforcemods.securitycraft.util.ModuleUtils;
-import net.geforcemods.securitycraft.util.Utils;
import net.minecraft.core.BlockPos;
import net.minecraft.core.Direction;
import net.minecraft.server.level.ServerLevel;
@@ -63,9 +62,7 @@ public class BlockChangeDetectorBlock extends DisguisableBlock {
@Override
public InteractionResult use(BlockState state, Level level, BlockPos pos, Player player, InteractionHand hand, BlockHitResult hit) {
if (!level.isClientSide && level.getBlockEntity(pos) instanceof BlockChangeDetectorBlockEntity be) {
- if (be.isDisabled())
- player.displayClientMessage(Utils.localize("gui.securitycraft:scManual.disabled"), true);
- else if (be.getOwner().isOwner(player) || ModuleUtils.isAllowed(be, player))
+ if (be.getOwner().isOwner(player) || ModuleUtils.isAllowed(be, player))
NetworkHooks.openGui((ServerPlayer) player, be, pos);
}
