From 627b48fd1b3e8de17f21805f5ab6efcaa3b9bc21 Mon Sep 17 00:00:00 2001 From: Vanessa Ezekowitz Date: Tue, 14 Mar 2017 02:17:32 -0400 Subject: [PATCH] use unified dyes on_construct handler to set 256-color palette meta key on place --- init.lua | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/init.lua b/init.lua index a089a5c..00964f0 100644 --- a/init.lua +++ b/init.lua @@ -107,6 +107,7 @@ minetest.register_node("unifiedbricks:brickblock", { is_ground_content = true, groups = {cracky=3, not_in_creative_inventory=1, ud_param2_colorable = 1}, sounds = default.node_sound_stone_defaults(), + on_construct = unifieddyes.on_construct, after_dig_node = unifieddyes.after_dig_node, drop = "default:brick" }) @@ -131,6 +132,7 @@ minetest.register_node("unifiedbricks:clayblock", { sounds = default.node_sound_dirt_defaults({ footstep = "", }), + on_construct = unifieddyes.on_construct, after_dig_node = unifieddyes.after_dig_node, drop = "default:clay" }) @@ -156,6 +158,7 @@ minetest.register_node("unifiedbricks:brickblock_multicolor_dark", { is_ground_content = true, groups = {cracky=3, ud_param2_colorable = 1}, sounds = default.node_sound_stone_defaults(), + on_construct = unifieddyes.on_construct, after_dig_node = unifieddyes.after_dig_node, }) @@ -174,6 +177,7 @@ minetest.register_node("unifiedbricks:brickblock_multicolor_medium", { is_ground_content = true, groups = {cracky=3, ud_param2_colorable = 1}, sounds = default.node_sound_stone_defaults(), + on_construct = unifieddyes.on_construct, after_dig_node = unifieddyes.after_dig_node, }) @@ -192,6 +196,7 @@ minetest.register_node("unifiedbricks:brickblock_multicolor_light", { is_ground_content = true, groups = {cracky=3, ud_param2_colorable = 1}, sounds = default.node_sound_stone_defaults(), + on_construct = unifieddyes.on_construct, after_dig_node = unifieddyes.after_dig_node, })