1
0
Fork 0

Save some table lookups in the spring ABM too

mineclone_compatibility
FaceDeer 2017-01-24 01:27:18 -07:00
parent 61315b761d
commit 5d4ea4b55d
1 changed files with 2 additions and 2 deletions

View File

@ -155,9 +155,9 @@ if springs then
action = function(pos,node)
while pos.y <= 0 do -- TODO: find mapgen water level for this check
pos.y = pos.y + 1
local check_node = minetest.get_node(pos)
local check_node = get_node(pos)
if check_node.name == "air" or check_node.name == "default:water_flowing" then
minetest.set_node(pos, {name="default:water_source"})
set_node(pos, {name="default:water_source"})
elseif check_node.name ~= "default:water_source" then
--Something's been put on top of this clay, don't send water through it
break