From b769569d5a1e93956cb2d4db4475f3546f3a331a Mon Sep 17 00:00:00 2001 From: libraryaddict Date: Mon, 31 Aug 2020 16:00:47 +1200 Subject: [PATCH] Set min radius of area cloud to 0.1 --- .../disguisetypes/watchers/AreaEffectCloudWatcher.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/main/java/me/libraryaddict/disguise/disguisetypes/watchers/AreaEffectCloudWatcher.java b/src/main/java/me/libraryaddict/disguise/disguisetypes/watchers/AreaEffectCloudWatcher.java index a7639f61..b18fba78 100644 --- a/src/main/java/me/libraryaddict/disguise/disguisetypes/watchers/AreaEffectCloudWatcher.java +++ b/src/main/java/me/libraryaddict/disguise/disguisetypes/watchers/AreaEffectCloudWatcher.java @@ -30,8 +30,11 @@ public class AreaEffectCloudWatcher extends FlagWatcher { } public void setRadius(float radius) { - if (radius > 30) + if (radius > 30) { radius = 30; + } else if (radius < 0.1) { + radius = 0.1f; + } setData(MetaIndex.AREA_EFFECT_RADIUS, radius); sendData(MetaIndex.AREA_EFFECT_RADIUS);