forked from VoxeLibre/VoxeLibre
make compass_image local
This commit is contained in:
parent
e36a7df75d
commit
5c8f94d620
|
@ -14,6 +14,7 @@ local random_timer_trigger = 0.5 -- random compass spinning tick in seconds. Inc
|
||||||
local random_frame = math.random(0, compass_frames-1)
|
local random_frame = math.random(0, compass_frames-1)
|
||||||
|
|
||||||
function mcl_compass.get_compass_image(pos, dir, itemstack)
|
function mcl_compass.get_compass_image(pos, dir, itemstack)
|
||||||
|
local compass_image = ""
|
||||||
-- Compasses do not work in certain zones
|
-- Compasses do not work in certain zones
|
||||||
local lodestone_pos = minetest.string_to_pos(itemstack:get_meta():get_string("pointsto"))
|
local lodestone_pos = minetest.string_to_pos(itemstack:get_meta():get_string("pointsto"))
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue