From 74e70b674efe332440634d782ee475acb3454da4 Mon Sep 17 00:00:00 2001 From: kabou Date: Wed, 11 May 2022 21:43:52 +0200 Subject: [PATCH] Fix return value of `get_compass_image()`. * `get_compass_image()` did not actually return the image number. --- mods/ITEMS/mcl_compass/init.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mods/ITEMS/mcl_compass/init.lua b/mods/ITEMS/mcl_compass/init.lua index 936e8fb938..55b46f6f49 100644 --- a/mods/ITEMS/mcl_compass/init.lua +++ b/mods/ITEMS/mcl_compass/init.lua @@ -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.