From 4a0efa36fd2c5b0ea494e4160ec656cb029ee3a0 Mon Sep 17 00:00:00 2001 From: Wuzzy Date: Mon, 9 Jan 2017 03:26:00 +0100 Subject: [PATCH] Better compass preview image --- mods/mcl_compass/init.lua | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/mods/mcl_compass/init.lua b/mods/mcl_compass/init.lua index 371744dbee..e875f4b0f5 100644 --- a/mods/mcl_compass/init.lua +++ b/mods/mcl_compass/init.lua @@ -39,10 +39,10 @@ for frame=0,31 do table.insert(images, "mcl_compass_compass.png^[verticalframe:32:"..frame) end -local i +local stereotype_frame = 18 for i,img in ipairs(images) do local inv = 1 - if i == 1 then + if i == stereotype_frame then inv = 0 end minetest.register_tool("mcl_compass:"..(i-1), { @@ -55,10 +55,12 @@ for i,img in ipairs(images) do end minetest.register_craft({ - output = 'mcl_compass:1', + output = 'mcl_compass:'..stereotype_frame, recipe = { {'', 'default:steel_ingot', ''}, {'default:steel_ingot', 'mesecons:redstone_dust', 'default:steel_ingot'}, {'', 'default:steel_ingot', ''} } }) + +minetest.register_alias("mcl_compass:compass", "mcl_compass:"..stereotype_frame)