mirror of
https://gitlab.com/luk3yx/minetest-flow.git
synced 2025-09-04 22:06:30 +02:00
Combine if statements
This commit is contained in:
parent
1d97d07697
commit
5e10ed5da6
4
init.lua
4
init.lua
@ -801,9 +801,7 @@ end
|
||||
local function on_fs_input(player, formname, fields)
|
||||
local name = player:get_player_name()
|
||||
local form_info = open_formspecs[name]
|
||||
if not form_info then return end
|
||||
|
||||
if formname ~= form_info.formname then return end
|
||||
if not form_info or formname ~= form_info.formname then return end
|
||||
|
||||
local callbacks = form_info.callbacks
|
||||
local ctx = form_info.ctx
|
||||
|
Loading…
Reference in New Issue
Block a user