mirror of
https://github.com/minetest-mods/technic.git
synced 2024-12-26 02:40:29 +01:00
Small fix blockin the geothermal
This commit is contained in:
parent
927ed7d157
commit
d455791cfb
@ -74,17 +74,17 @@ minetest.register_abm({
|
|||||||
local load_step=0
|
local load_step=0
|
||||||
|
|
||||||
pos.x=pos.x+1
|
pos.x=pos.x+1
|
||||||
local check=check_node_around (pos)
|
local check=check_node_around_mill (pos)
|
||||||
if check==1 then water_nodes=water_nodes+1 end
|
if check==1 then water_nodes=water_nodes+1 end
|
||||||
pos.x=pos.x-2
|
pos.x=pos.x-2
|
||||||
check=check_node_around (pos)
|
check=check_node_around_mill (pos)
|
||||||
if check==1 then water_nodes=water_nodes+1 end
|
if check==1 then water_nodes=water_nodes+1 end
|
||||||
pos.x=pos.x+1
|
pos.x=pos.x+1
|
||||||
pos.z=pos.z+1
|
pos.z=pos.z+1
|
||||||
check=check_node_around (pos)
|
check=check_node_around_mill (pos)
|
||||||
if check==1 then water_nodes=water_nodes+1 end
|
if check==1 then water_nodes=water_nodes+1 end
|
||||||
pos.z=pos.z-2
|
pos.z=pos.z-2
|
||||||
check=check_node_around (pos)
|
check=check_node_around_mill (pos)
|
||||||
if check==1 then water_nodes=water_nodes+1 end
|
if check==1 then water_nodes=water_nodes+1 end
|
||||||
pos.z=pos.z+1
|
pos.z=pos.z+1
|
||||||
|
|
||||||
@ -121,7 +121,7 @@ minetest.register_abm({
|
|||||||
end
|
end
|
||||||
})
|
})
|
||||||
|
|
||||||
function check_node_around (pos)
|
function check_node_around_mill (pos)
|
||||||
local node=minetest.env:get_node(pos)
|
local node=minetest.env:get_node(pos)
|
||||||
if node.name=="default:water_flowing" then return 1 end
|
if node.name=="default:water_flowing" then return 1 end
|
||||||
return 0
|
return 0
|
||||||
|
Loading…
Reference in New Issue
Block a user