fix crash (return not in the last line of if statement)

This commit is contained in:
chmodsayshello 2022-04-26 19:42:33 +00:00
parent 09193b4907
commit 44b21512c5
1 changed files with 1 additions and 1 deletions

View File

@ -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"))