forked from nalc/homedecor_modpack
Activate faucets for locked cabinets too.
This commit is contained in:
parent
a14722eb98
commit
1ea19fd12f
|
@ -119,7 +119,8 @@ local function taps_on_rightclick(pos, node, clicker, itemstack, pointed_thing)
|
||||||
if below and
|
if below and
|
||||||
below.name == "homedecor:shower_tray" or
|
below.name == "homedecor:shower_tray" or
|
||||||
below.name == "homedecor:sink" 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 = {
|
local particledef = {
|
||||||
outlet = { x = 0, y = -0.44, z = 0.28 },
|
outlet = { x = 0, y = -0.44, z = 0.28 },
|
||||||
velocity_x = { min = -0.1, max = 0.1 },
|
velocity_x = { min = -0.1, max = 0.1 },
|
||||||
|
|
|
@ -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})
|
local below = minetest.get_node_or_nil({x=pos.x, y=pos.y-1, z=pos.z})
|
||||||
if below and
|
if below and
|
||||||
below.name == "homedecor:sink" 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 = {
|
local particledef = {
|
||||||
outlet = { x = 0, y = -0.19, z = 0.13 },
|
outlet = { x = 0, y = -0.19, z = 0.13 },
|
||||||
velocity_x = { min = -0.05, max = 0.05 },
|
velocity_x = { min = -0.05, max = 0.05 },
|
||||||
|
|
Loading…
Reference in New Issue
Block a user