mirror of
https://github.com/MinetestForFun/minercantile.git
synced 2025-01-10 16:50:15 +01:00
fix crash if close and open formspec very fast and server lag
Fix crash when closing and opening formspec very quickly and server lag
This commit is contained in:
parent
852b4d9b0b
commit
269488f8c2
1
shop.lua
1
shop.lua
@ -833,6 +833,7 @@ minetest.register_on_player_receive_fields(function(player, formname, fields)
|
|||||||
minetest.show_formspec(name, "minercantile:shop_welcome", get_formspec_welcome(name))
|
minetest.show_formspec(name, "minercantile:shop_welcome", get_formspec_welcome(name))
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
|
if not shop_admin[name] then return end
|
||||||
local pos = shop_admin[name].pos
|
local pos = shop_admin[name].pos
|
||||||
local node_name = shop_admin[name].node_name
|
local node_name = shop_admin[name].node_name
|
||||||
local isnode = minetest.get_node_or_nil(pos)
|
local isnode = minetest.get_node_or_nil(pos)
|
||||||
|
Loading…
Reference in New Issue
Block a user