From 235fee091ed867dd7edaad8ab0161b60adc26565 Mon Sep 17 00:00:00 2001 From: Sunny Kim <58885089+sk7725@users.noreply.github.com> Date: Wed, 28 Jul 2021 06:08:29 +0900 Subject: [PATCH] keep v6 mod compatibility (#5655) --- core/src/mindustry/world/Block.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/core/src/mindustry/world/Block.java b/core/src/mindustry/world/Block.java index 94732f338a..ee354135ac 100644 --- a/core/src/mindustry/world/Block.java +++ b/core/src/mindustry/world/Block.java @@ -793,6 +793,11 @@ public class Block extends UnlockableContent{ } clipSize = Math.max(clipSize, size * tilesize); + + //only kept to ensure compatibility with v6 mods. + if(expanded){ + clipSize += tilesize * 10f; + } if(emitLight){ clipSize = Math.max(clipSize, lightRadius * 2f);