From 1ea19fd12fdf6685eaaf13113e31b0494bafa790 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Diego=20Mart=C3=ADnez?= Date: Sat, 7 Jan 2017 04:48:16 -0300 Subject: [PATCH] Activate faucets for locked cabinets too. --- homedecor/bathroom_sanitation.lua | 3 ++- homedecor/kitchen_furniture.lua | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/homedecor/bathroom_sanitation.lua b/homedecor/bathroom_sanitation.lua index 4e3aa651..ffd4ca29 100644 --- a/homedecor/bathroom_sanitation.lua +++ b/homedecor/bathroom_sanitation.lua @@ -119,7 +119,8 @@ local function taps_on_rightclick(pos, node, clicker, itemstack, pointed_thing) if below and below.name == "homedecor:shower_tray" or below.name == "homedecor:sink" or - below.name == "homedecor:kitchen_cabinet_with_sink" then + below.name == "homedecor:kitchen_cabinet_with_sink" or + below.name == "homedecor:kitchen_cabinet_with_sink_locked" then local particledef = { outlet = { x = 0, y = -0.44, z = 0.28 }, velocity_x = { min = -0.1, max = 0.1 }, diff --git a/homedecor/kitchen_furniture.lua b/homedecor/kitchen_furniture.lua index cf240f84..787cf20a 100644 --- a/homedecor/kitchen_furniture.lua +++ b/homedecor/kitchen_furniture.lua @@ -121,7 +121,8 @@ homedecor.register("kitchen_faucet", { local below = minetest.get_node_or_nil({x=pos.x, y=pos.y-1, z=pos.z}) if below and below.name == "homedecor:sink" or - below.name == "homedecor:kitchen_cabinet_with_sink" then + below.name == "homedecor:kitchen_cabinet_with_sink" or + below.name == "homedecor:kitchen_cabinet_with_sink_locked" then local particledef = { outlet = { x = 0, y = -0.19, z = 0.13 }, velocity_x = { min = -0.05, max = 0.05 },