forked from VoxeLibre/VoxeLibre
fix crash (return not in the last line of if statement)
This commit is contained in:
parent
09193b4907
commit
44b21512c5
|
@ -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