spawners_ores - add owner to meta

This commit is contained in:
Juraj Vajda 2018-01-08 17:51:26 -05:00
parent 6b777ed9d6
commit f79273ac07

View File

@ -247,6 +247,12 @@ function spawners_ores.create(def)
return drops
end,
after_place_node = function(pos, placer, itemstack, pointed_thing)
-- TODO: show owner in infotext/formspec
local meta = minetest.get_meta(pos)
meta:set_string("owner", placer:get_player_name())
end,
on_metadata_inventory_put = on_metadata_inventory_put,
on_metadata_inventory_take = on_metadata_inventory_take,
allow_metadata_inventory_put = allow_metadata_inventory_put,