Fix trader form not closing

master
shivajiva101 2020-09-17 11:11:06 +01:00 committed by GitHub
parent 63baa47295
commit 22d4f066a3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -150,11 +150,12 @@ minetest.register_on_player_receive_fields(function(player, formname, fields)
if fields.up and y ~= 0 then
y = y + 4.4
context[name].y = y
minetest.show_formspec(name, TF, build_form(name, def.shop_items))
elseif fields.down and y > limit then
y = y - 4.4
context[name].y = y
minetest.show_formspec(name, TF, build_form(name, def.shop_items))
end
minetest.show_formspec(name, TF, build_form(name, def.shop_items))
end
elseif formname == BF and fields.btn then