mirror of
https://github.com/minetest-mods/technic.git
synced 2025-01-30 20:00:27 +01:00
Fixed Water Mill Node
This commit is contained in:
parent
abbb4ead1b
commit
5b52a94da7
@ -19,8 +19,15 @@ minetest.register_craft({
|
|||||||
|
|
||||||
local function check_node_around_mill(pos)
|
local function check_node_around_mill(pos)
|
||||||
local node = minetest.get_node(pos)
|
local node = minetest.get_node(pos)
|
||||||
if node.name == "default:water_flowing"
|
if technic_compat.mcl then
|
||||||
or node.name == "default:river_water_flowing" then
|
local water_flowing_node = "mcl_core:water_flowing"
|
||||||
|
local river_water_flowing_node = "mclx_core:river_water_flowing"
|
||||||
|
else
|
||||||
|
local water_flowing_node = "default:water_flowing"
|
||||||
|
local river_water_flowing_node = "default:river_water_flowing"
|
||||||
|
end
|
||||||
|
if node.name == water_flowing_node
|
||||||
|
or node.name == river_water_flowing_node then
|
||||||
return node.param2 -- returns approx. water flow, if any
|
return node.param2 -- returns approx. water flow, if any
|
||||||
end
|
end
|
||||||
return false
|
return false
|
||||||
|
Loading…
Reference in New Issue
Block a user