make compass_image local

This commit is contained in:
chmodsayshello 2022-04-25 19:51:44 +00:00
parent e36a7df75d
commit 5c8f94d620
1 changed files with 1 additions and 0 deletions

View File

@ -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)
function mcl_compass.get_compass_image(pos, dir, itemstack)
local compass_image = ""
-- Compasses do not work in certain zones
local lodestone_pos = minetest.string_to_pos(itemstack:get_meta():get_string("pointsto"))