From 7fd334ba18646903d743b30c80a851f2d83f2294 Mon Sep 17 00:00:00 2001 From: ImToggle <98242902+ImToggle@users.noreply.github.com> Date: Thu, 5 Dec 2024 21:22:32 +0800 Subject: [PATCH] particle limit range --- .../kotlin/org/polyfrost/overflowparticles/config/Settings.kt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/main/kotlin/org/polyfrost/overflowparticles/config/Settings.kt b/src/main/kotlin/org/polyfrost/overflowparticles/config/Settings.kt index afd1038..847d98f 100644 --- a/src/main/kotlin/org/polyfrost/overflowparticles/config/Settings.kt +++ b/src/main/kotlin/org/polyfrost/overflowparticles/config/Settings.kt @@ -35,6 +35,9 @@ class Settings { min = 1f, max = 10000f ) var maxParticleLimit = 4000 + set(value) { + field = if (value in 1..10000) value else 4000 + } @Switch( name = "Particles No-Clip",