Set min radius of area cloud to 0.1

This commit is contained in:
libraryaddict 2020-08-31 16:00:47 +12:00
parent 6e4ceb37a9
commit b769569d5a

View File

@ -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);