summaryrefslogtreecommitdiff
path: root/dispatcherfw.lua
diff options
context:
space:
mode:
authorcheapie <cheapiephp@gmail.com>2026-07-28 05:25:40 -0500
committercheapie <cheapiephp@gmail.com>2026-07-28 05:25:40 -0500
commitf255c26924a0ef915ba53c15295c1e9de278b283 (patch)
treeef747ecbd0e3e20d3ae19c5b8e115a83506bf568 /dispatcherfw.lua
parent924fbc78f755bcd2917334bd28519bb614babac0 (diff)
downloadcelevator-f255c26924a0ef915ba53c15295c1e9de278b283.tar
celevator-f255c26924a0ef915ba53c15295c1e9de278b283.tar.gz
celevator-f255c26924a0ef915ba53c15295c1e9de278b283.tar.bz2
celevator-f255c26924a0ef915ba53c15295c1e9de278b283.tar.xz
celevator-f255c26924a0ef915ba53c15295c1e9de278b283.zip
Improve input validation
Diffstat (limited to 'dispatcherfw.lua')
-rw-r--r--dispatcherfw.lua2
1 files changed, 1 insertions, 1 deletions
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