From 212adddd5300caac8d50722ee08c13c2e0de2bd0 Mon Sep 17 00:00:00 2001 From: Anuken Date: Fri, 27 Oct 2023 18:42:25 -0400 Subject: [PATCH] Fixed some blocks not being mobile rotate-able --- core/src/mindustry/world/Block.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/src/mindustry/world/Block.java b/core/src/mindustry/world/Block.java index 39080e2c0a..619a9fe209 100644 --- a/core/src/mindustry/world/Block.java +++ b/core/src/mindustry/world/Block.java @@ -650,7 +650,7 @@ public class Block extends UnlockableContent implements Senseable{ public boolean canReplace(Block other){ if(other.alwaysReplace) return true; if(other.privileged) return false; - return other.replaceable && (other != this || (rotate && quickRotate)) && this.group != BlockGroup.none && other.group == this.group && + return other.replaceable && (other != this || (rotate && quickRotate)) && ((this.group != BlockGroup.none && other.group == this.group) || other == this) && (size == other.size || (size >= other.size && ((subclass != null && subclass == other.subclass) || group.anyReplace))); }