forked from mtcontrib/bitchange
Quick fix
To stop crashing with nil instead of pos.
This commit is contained in:
parent
e7425e19e9
commit
db64a14cdc
3
shop.lua
3
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 ""
|
||||||
@ -339,4 +340,4 @@ minetest.register_craft({
|
|||||||
{"default:sign_wall"},
|
{"default:sign_wall"},
|
||||||
{"default:chest_locked"},
|
{"default:chest_locked"},
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
Loading…
Reference in New Issue
Block a user