From 921c05da0d057469032fe9aced321503f1f0d498 Mon Sep 17 00:00:00 2001 From: Vanessa Ezekowitz Date: Sat, 4 Feb 2017 20:11:09 -0500 Subject: updated several mods to use newer unified dyes API blox, bobblocks, coloredwood, framedglass, homedecor, ilights, plasticbox, stained_glass, unifiedbricks, and of course unified dyes. --- lavalamp/init.lua | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) (limited to 'lavalamp/init.lua') diff --git a/lavalamp/init.lua b/lavalamp/init.lua index eec843a..42b70af 100644 --- a/lavalamp/init.lua +++ b/lavalamp/init.lua @@ -30,19 +30,14 @@ minetest.register_node("lavalamp:lavalamp", { type = "fixed", fixed = { -0.25, -0.5, -0.25, 0.25,0.5, 0.25 }, }, - groups = {snappy=2,cracky=3,oddly_breakable_by_hand=3}, + groups = {snappy=2,cracky=3,oddly_breakable_by_hand=3, ud_param2_colorable = 1}, sounds = default.node_sound_glass_defaults(), after_dig_node = unifieddyes.after_dig_node, on_rightclick = function(pos, node, clicker, itemstack, pointed_thing) local itemname = itemstack:get_name() - if string.find(itemname, "dye:") or string.find(itemname, "unifieddyes:") then - unifieddyes.on_rightclick(pos, node, clicker, - itemstack, pointed_thing, "lavalamp:lavalamp", false) - else - node.name = "lavalamp:lavalamp_off" - minetest.swap_node(pos, node) - return itemstack - end + node.name = "lavalamp:lavalamp_off" + minetest.swap_node(pos, node) + return itemstack end }) -- cgit v1.2.3