Fix return value of `get_compass_image()`.

* `get_compass_image()` did not actually return the image number.
This commit is contained in:
kabou 2022-05-11 21:43:52 +02:00
parent 14c882f982
commit 74e70b674e
1 changed files with 1 additions and 1 deletions

View File

@ -134,7 +134,7 @@ function mcl_compass.get_compass_image(pos, dir)
minetest.log("warning", "mcl_compass: deprecated function " ..
"get_compass_image() called, use get_compass_itemname().")
local itemstack = ItemStack(mcl_compass.stereotype)
local frame = get_compass_frame(pos, dir, itemstack)
return get_compass_frame(pos, dir, itemstack)
end
--- Get compass itemname.