forked from VoxeLibre/VoxeLibre
Fix return value of `get_compass_image()`.
* `get_compass_image()` did not actually return the image number.
This commit is contained in:
parent
14c882f982
commit
74e70b674e
|
@ -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.
|
||||
|
|
Reference in New Issue