forked from mtcontrib/bitchange
Quick fix
To stop crashing with nil instead of pos.
This commit is contained in:
parent
e7425e19e9
commit
db64a14cdc
1
shop.lua
1
shop.lua
@ -91,6 +91,7 @@ minetest.register_on_player_receive_fields(function(sender, formname, fields)
|
|||||||
return
|
return
|
||||||
end
|
end
|
||||||
local player_name = sender:get_player_name()
|
local player_name = sender:get_player_name()
|
||||||
|
if not exchange_shop[player_name] then return end
|
||||||
local pos = exchange_shop[player_name]
|
local pos = exchange_shop[player_name]
|
||||||
local meta = minetest.get_meta(pos)
|
local meta = minetest.get_meta(pos)
|
||||||
local title = meta:get_string("title") or ""
|
local title = meta:get_string("title") or ""
|
||||||
|
Loading…
Reference in New Issue
Block a user