call using player name

This commit is contained in:
Tai @ Flex 2016-12-05 03:38:58 +00:00
parent 48e7942d51
commit 9e4c29e74b

View File

@ -27,7 +27,7 @@ minetest.register_node("skytardis:tardiswood",{
local metaraw = minetest.deserialize( itemstack:get_metadata() )
if not metaraw then
skytardis:setSkyStructureFor(pos.x, pos.z, placer)
skytardis:setSkyStructureFor(pos.x, pos.z, placer:get_player_name() )
metaraw = skytardis:getSkyStructureFor(pos.x, pos.z)
@ -64,3 +64,4 @@ minetest.register_node("skytardis:tardisstone",{
light_propagates = true,
sunlight_propagates = true,
})