forked from VoxeLibre/VoxeLibre
merge lodestone in new branch #2
|
@ -28,8 +28,8 @@ local random_frame = math.random(0, compass_frames-1)
|
|||
|
||||
function mcl_compass.get_compass_image(pos, dir, itemstack)
|
||||
if not itemstack then
|
||||
return random_frame --no itemstack! random frame
|
||||
minetest.log("WARNING: mcl_compass.get_compass_image() was called without itemstack, returning random frame!")
|
||||
return random_frame
|
||||
end
|
||||
|
||||
local lodestone_pos = minetest.string_to_pos(itemstack:get_meta():get_string("pointsto"))
|
||||
|
|
Loading…
Reference in New Issue