tweak pipes check
This commit is contained in:
parent
14b9d092d7
commit
b74294d548
7
init.lua
7
init.lua
@ -7,6 +7,7 @@ local snd_d = def and default.node_sound_defaults()
|
|||||||
local snd_g = def and default.node_sound_glass_defaults()
|
local snd_g = def and default.node_sound_glass_defaults()
|
||||||
local glass_item = def and "default:glass"
|
local glass_item = def and "default:glass"
|
||||||
local txt
|
local txt
|
||||||
|
local pipes_list = pipe and pipeworks.pipes_full_nodenames or {"default:river_water_source"}
|
||||||
|
|
||||||
|
|
||||||
-- check for MineClone2
|
-- check for MineClone2
|
||||||
@ -472,10 +473,10 @@ minetest.register_node("wine:wine_barrel", {
|
|||||||
local inv = meta:get_inventory()
|
local inv = meta:get_inventory()
|
||||||
local water = meta:get_int("water") or 0
|
local water = meta:get_int("water") or 0
|
||||||
|
|
||||||
-- check for pipeworks water inlet
|
-- check for pipeworks water inlet or well block
|
||||||
if pipe and water < 100 then
|
if water < 100 then
|
||||||
|
|
||||||
if minetest.find_node_near(pos, 1, pipeworks.pipes_full_nodenames) then
|
if minetest.find_node_near(pos, 1, pipes_list) then
|
||||||
|
|
||||||
water = water + 20
|
water = water + 20
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user