forked from mtcontrib/minetest_returnmirror
Fix pos typo
This commit is contained in:
parent
722a7bd3cb
commit
f472ace93d
4
init.lua
4
init.lua
|
@ -47,8 +47,8 @@ returnmirror.set_position_inactive = function(itemstack, user, pointed_thing)
|
|||
end
|
||||
end
|
||||
|
||||
local pos = user:getpos()
|
||||
if returnmirror.mana_check(user, returnmirror.cost_set) then
|
||||
local pos = user:getpos()
|
||||
local newitem = ItemStack("returnmirror:mirror_active")
|
||||
newitem:set_metadata(minetest.pos_to_string(pos))
|
||||
minetest.sound_play( {name="returnmirror_set", gain=1}, {pos=pos, max_hear_distance=12})
|
||||
|
@ -69,8 +69,8 @@ returnmirror.set_position_active = function(itemstack, user, pointed_thing)
|
|||
end
|
||||
end
|
||||
|
||||
local pos = user:getpos()
|
||||
if returnmirror.mana_check(user, returnmirror.cost_set) then
|
||||
local pos = user:getpos()
|
||||
itemstack:set_metadata(minetest.pos_to_string(pos))
|
||||
minetest.sound_play( {name="returnmirror_set", gain=1}, {pos=pos, max_hear_distance=12})
|
||||
return itemstack
|
||||
|
|
Loading…
Reference in New Issue
Block a user