From 70145d3e4dbc16e688f293fbaf49b7a3110c3045 Mon Sep 17 00:00:00 2001 From: Vanessa Ezekowitz Date: Sat, 4 Feb 2017 19:41:28 -0500 Subject: [PATCH] unified dyes uses on_use now, instead of on_rightclick --- init.lua | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/init.lua b/init.lua index 96f2d3e..b94f916 100644 --- a/init.lua +++ b/init.lua @@ -60,7 +60,7 @@ minetest.register_node("ilights:light", { "ilights_lamp_lens.png" }, use_texture_alpha = true, - groups = {cracky=3}, + groups = {cracky=3, ud_param2_colorable = 1}, paramtype = "light", paramtype2 = "colorwallmounted", palette = "unifieddyes_palette_colorwallmounted.png", @@ -68,11 +68,7 @@ minetest.register_node("ilights:light", { selection_box = lamp_cbox, node_box = lamp_cbox, after_place_node = ilights.fix_rotation, - after_dig_node = unifieddyes.after_dig_node, - on_rightclick = function(pos, node, clicker, itemstack, pointed_thing) - unifieddyes.on_rightclick(pos, node, clicker, - itemstack, pointed_thing, "ilights:light", "wallmounted") - end, + after_dig_node = unifieddyes.after_dig_node }) minetest.register_craft({