From 876003adb8547bfb232cfe6a07c328c73412df52 Mon Sep 17 00:00:00 2001 From: Anuken Date: Tue, 17 Dec 2024 09:04:08 -0500 Subject: [PATCH] Fixed #10379 --- core/src/mindustry/ui/dialogs/DatabaseDialog.java | 2 +- core/src/mindustry/world/blocks/environment/SteamVent.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/core/src/mindustry/ui/dialogs/DatabaseDialog.java b/core/src/mindustry/ui/dialogs/DatabaseDialog.java index e8ffe18778..10e2ab9ddb 100644 --- a/core/src/mindustry/ui/dialogs/DatabaseDialog.java +++ b/core/src/mindustry/ui/dialogs/DatabaseDialog.java @@ -47,7 +47,7 @@ public class DatabaseDialog extends BaseDialog{ }); onResize(this::rebuild); - all.margin(20).marginTop(0f); + all.margin(20).marginTop(0f).marginRight(30f); cont.top(); cont.table(s -> { diff --git a/core/src/mindustry/world/blocks/environment/SteamVent.java b/core/src/mindustry/world/blocks/environment/SteamVent.java index 6ab3eccc75..ef2414e1cf 100644 --- a/core/src/mindustry/world/blocks/environment/SteamVent.java +++ b/core/src/mindustry/world/blocks/environment/SteamVent.java @@ -60,7 +60,7 @@ public class SteamVent extends Floor{ @Override public void renderUpdate(UpdateRenderState state){ - if(state.tile.block() == Blocks.air && (state.data += Time.delta) >= effectSpacing){ + if(state.tile.nearby(-1, -1) != null && state.tile.nearby(-1, -1).block() == Blocks.air && (state.data += Time.delta) >= effectSpacing){ effect.at(state.tile.x * tilesize - tilesize, state.tile.y * tilesize - tilesize, effectColor); state.data = 0f; }