spawners_ores - add owner to meta
This commit is contained in:
parent
6b777ed9d6
commit
f79273ac07
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user