Commit db64a14c authored by tenplus1's avatar tenplus1
Browse files

Quick fix

To stop crashing with nil instead of pos.
parent e7425e19
......@@ -91,6 +91,7 @@ minetest.register_on_player_receive_fields(function(sender, formname, fields)
local player_name = sender:get_player_name()
if not exchange_shop[player_name] then return end
local pos = exchange_shop[player_name]
local meta = minetest.get_meta(pos)
local title = meta:get_string("title") or ""
......@@ -339,4 +340,4 @@ minetest.register_craft({
\ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment