Add missing placer param to locked armor stand, fixes #59

This commit is contained in:
stujones11 2016-05-11 22:19:13 +01:00
parent 8f8c6c6bfa
commit b14db3c43c

@ -199,7 +199,7 @@ minetest.register_node("3d_armor_stand:locked_armor_stand", {
end end
return true return true
end, end,
after_place_node = function(pos) after_place_node = function(pos, placer)
minetest.add_entity(pos, "3d_armor_stand:armor_entity") minetest.add_entity(pos, "3d_armor_stand:armor_entity")
local meta = minetest.get_meta(pos) local meta = minetest.get_meta(pos)
meta:set_string("owner", placer:get_player_name() or "") meta:set_string("owner", placer:get_player_name() or "")