diff --git a/core/src/mindustry/client/antigrief/Moderation.kt b/core/src/mindustry/client/antigrief/Moderation.kt index 03ba294af7..78061c1983 100644 --- a/core/src/mindustry/client/antigrief/Moderation.kt +++ b/core/src/mindustry/client/antigrief/Moderation.kt @@ -86,12 +86,11 @@ class Moderation { } Events.on(EventType.PlayerJoin::class.java) { e -> // Trace players when they join, also traces all players on join - if (e.player == null || e.player == Vars.player ||!Core.settings.getBool("modenabled")) return@on + if (e.player == null || e.player == Vars.player || !Core.settings.getBool("modenabled")) return@on Seer.registerPlayer(e.player) - if (Server.current.adminui() && !e.player.admin) { - silentTrace++ - Call.adminRequest(e.player, Packets.AdminAction.trace, null) - } + if (!Server.current.adminui() || e.player.admin) return@on + silentTrace++ + Call.adminRequest(e.player, Packets.AdminAction.trace, null) } } diff --git a/core/src/mindustry/client/utils/ServerUtils.kt b/core/src/mindustry/client/utils/ServerUtils.kt index a689206a5e..7a3fb89483 100644 --- a/core/src/mindustry/client/utils/ServerUtils.kt +++ b/core/src/mindustry/client/utils/ServerUtils.kt @@ -52,7 +52,7 @@ enum class Server( // FINISHME: This is horrible. Why have I done this? } } - override fun adminui() = ClientVars.rank >= 5 || player.admin + override fun adminui() = player.admin || ClientVars.rank >= 5 }, phoenix("Phoenix Network", null, Cmd("/w"), Cmd("/rtv"), Cmd("/freeze", 9), votekickString = "Type [cyan]/vote y"), korea("Korea", ghost = true), diff --git a/core/src/mindustry/ui/fragments/BlockConfigFragment.java b/core/src/mindustry/ui/fragments/BlockConfigFragment.java index 144bfeb8d6..6cd938d8a4 100644 --- a/core/src/mindustry/ui/fragments/BlockConfigFragment.java +++ b/core/src/mindustry/ui/fragments/BlockConfigFragment.java @@ -43,6 +43,7 @@ public void showConfig(Building tile){ table.visible = true; table.clear(); + table.background(null); // clear the background as some blocks set custom ones tile.buildConfiguration(table); table.pack(); table.setTransform(true); diff --git a/core/src/mindustry/world/blocks/logic/LogicBlock.java b/core/src/mindustry/world/blocks/logic/LogicBlock.java index 5af78cda0c..831dec668c 100644 --- a/core/src/mindustry/world/blocks/logic/LogicBlock.java +++ b/core/src/mindustry/world/blocks/logic/LogicBlock.java @@ -674,7 +674,7 @@ public void buildConfiguration(Table table){ ui.logic.show(code, executor, privileged, code -> configure(compress(code, relativeConnections()))) ).size(40); - //TODO FINISHME: bundle + // FINISHME: bundle table.button(Icon.refresh, Styles.cleari, () -> { var original = code; ClientVars.configs.add(() -> { // Cursed, enqueues a config now, when that one is run it enqueues a second config.