From f255c26924a0ef915ba53c15295c1e9de278b283 Mon Sep 17 00:00:00 2001 From: cheapie Date: Tue, 28 Jul 2026 05:25:40 -0500 Subject: Improve input validation --- dispatcherfw.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'dispatcherfw.lua') diff --git a/dispatcherfw.lua b/dispatcherfw.lua index 250a4d1..7793091 100644 --- a/dispatcherfw.lua +++ b/dispatcherfw.lua @@ -420,7 +420,7 @@ elseif event.type == "ui" then if event.fields.back or event.fields.save then mem.screenstate = (mem.screenstate == "oobe_floortable_edit" and "oobe_floortable" or "floortable") local height = tonumber(event.fields.height) - if height then + if height and height < (tonumber(core.settings:get("celevator.max_height")) or 100) then height = math.floor(height+0.5) mem.params.floorheights[mem.editingfloor] = math.max(1,height) end -- cgit v1.2.3