From 1c6f1591dabb90f7dad9897174511491ccb15b99 Mon Sep 17 00:00:00 2001 From: Wuzzy Date: Mon, 20 Feb 2017 21:16:51 +0100 Subject: [PATCH] Add mcl_clock item stereotype --- mods/HUD/mcl_craftguide/depends.txt | 1 + mods/HUD/mcl_craftguide/init.lua | 1 + mods/ITEMS/mcl_clock/init.lua | 4 ++++ 3 files changed, 6 insertions(+) diff --git a/mods/HUD/mcl_craftguide/depends.txt b/mods/HUD/mcl_craftguide/depends.txt index a37919b6..cbf7e57d 100644 --- a/mods/HUD/mcl_craftguide/depends.txt +++ b/mods/HUD/mcl_craftguide/depends.txt @@ -1,2 +1,3 @@ mcl_core mcl_compass +mcl_clock diff --git a/mods/HUD/mcl_craftguide/init.lua b/mods/HUD/mcl_craftguide/init.lua index 47a426c9..ba921c72 100644 --- a/mods/HUD/mcl_craftguide/init.lua +++ b/mods/HUD/mcl_craftguide/init.lua @@ -49,6 +49,7 @@ local group_stereotypes = { quartz_block = "mcl_nether:quartz_block", mesecon_conductor_craftable = "mesecons:wire_00000000_off", compass = mcl_compass.stereotype, + clock = mcl_clock.sterotype, } local group_names = { diff --git a/mods/ITEMS/mcl_clock/init.lua b/mods/ITEMS/mcl_clock/init.lua index 7c1acf2a..7d0c05fb 100644 --- a/mods/ITEMS/mcl_clock/init.lua +++ b/mods/ITEMS/mcl_clock/init.lua @@ -4,6 +4,8 @@ Original from Echo, here: http://forum.minetest.net/viewtopic.php?id=3795 ]]-- +mcl_clock = {} + local watch = {} watch.old_time = -1 @@ -97,3 +99,5 @@ for a=0,63,1 do end watch.register_item("mcl_clock:clock_"..tostring(a), watch.images[b+1], false) end + +mcl_clock.stereotype = "mcl_clock:clock"