From 251e10b00057fded518a225c0e655ee8c679efc6 Mon Sep 17 00:00:00 2001 From: Anuken Date: Sun, 2 Apr 2023 13:28:49 -0400 Subject: [PATCH] Fixed #8465 --- core/src/mindustry/entities/comp/PuddleComp.java | 2 +- core/src/mindustry/world/Block.java | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/core/src/mindustry/entities/comp/PuddleComp.java b/core/src/mindustry/entities/comp/PuddleComp.java index bc93435813..090a881060 100644 --- a/core/src/mindustry/entities/comp/PuddleComp.java +++ b/core/src/mindustry/entities/comp/PuddleComp.java @@ -127,7 +127,7 @@ abstract class PuddleComp implements Posc, Puddlec, Drawc, Syncc{ @Replace public float clipSize(){ - return 20; + return 50; //high for light drawing } @Override diff --git a/core/src/mindustry/world/Block.java b/core/src/mindustry/world/Block.java index ef0ac3ef48..5c09601aa1 100644 --- a/core/src/mindustry/world/Block.java +++ b/core/src/mindustry/world/Block.java @@ -1144,6 +1144,10 @@ public class Block extends UnlockableContent implements Senseable{ clipSize = Math.max(clipSize, size * tilesize); + if(hasLiquids && drawLiquidLight){ + clipSize = Math.max(size * 30f * 2f, clipSize); + } + if(emitLight){ clipSize = Math.max(clipSize, lightRadius * 2f); }