From 7e3572df512c434143f1ec3aad0c31168e3adc5b Mon Sep 17 00:00:00 2001 From: Anuken Date: Fri, 29 Nov 2024 00:10:05 -0500 Subject: [PATCH] Fixed in-editor blocks not being placeable on empty/space blocks --- core/src/mindustry/world/Build.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/src/mindustry/world/Build.java b/core/src/mindustry/world/Build.java index 777d2a8be6..d0129890fc 100644 --- a/core/src/mindustry/world/Build.java +++ b/core/src/mindustry/world/Build.java @@ -239,7 +239,7 @@ public class Build{ (check.floor().isDeep() && !type.floating && !type.requiresWater && !type.placeableLiquid) || //deep water (type == check.block() && check.build != null && rotation == check.build.rotation && type.rotate && !((type == check.block && team != Team.derelict && check.team() == Team.derelict))) || //same block, same rotation !check.interactable(team) || //cannot interact - !check.floor().placeableOn || //solid floor + !check.floor().placeableOn && !type.ignoreBuildDarkness || //solid floor (!checkVisible && !check.block().alwaysReplace) || //replacing a block that should be replaced (e.g. payload placement) !(((type.canReplace(check.block()) || (type == check.block && team != Team.derelict && state.rules.derelictRepair && check.team() == Team.derelict)) || //can replace type OR can replace derelict block of same type (check.build instanceof ConstructBuild build && build.current == type && check.centerX() == tile.x && check.centerY() == tile.y)) && //same type in construction