From 5d4ea4b55dc9dc87c912a219290d16fc3b650e7e Mon Sep 17 00:00:00 2001 From: FaceDeer Date: Tue, 24 Jan 2017 01:27:18 -0700 Subject: [PATCH] Save some table lookups in the spring ABM too --- init.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/init.lua b/init.lua index 70c4649..300fb0c 100644 --- a/init.lua +++ b/init.lua @@ -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