From 170596c13f6f0908eb7e8cb4ec993cce0e75d154 Mon Sep 17 00:00:00 2001 From: HeroOfTheWinds Date: Wed, 21 May 2014 10:52:11 -1000 Subject: [PATCH] Fix liquid not flowing in moontest air Also minor tweak to cause it not to delete vacuum or air directly above it... doesn't flow upwards anyway, now does it? --- mods/mapgen/init.lua | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/mods/mapgen/init.lua b/mods/mapgen/init.lua index 6afc1f80..5b5582c2 100644 --- a/mods/mapgen/init.lua +++ b/mods/mapgen/init.lua @@ -129,19 +129,19 @@ minetest.register_on_generated(function(minp, maxp, seed) vm:write_to_map(data) end) ---make liquid delete vacuum nodes nearby so as to allow flowing +--make liquid delete vacuum and air nodes nearby so as to allow flowing minetest.register_abm({ nodenames = {"group:liquid"}, - neighbors = {"moontest:vacuum"}, + neighbors = {"moontest:vacuum", "moontest:air"}, interval = 1.0, chance = 1, action = function(pos, node, active_object_count, active_object_count_wider) for x = -1,1 do - for y = -1,1 do + for y = -1,0 do for z = -1,1 do n_pos = {x=x + pos.x,y=y+pos.y,z=z+pos.z} n_name = minetest.get_node(n_pos).name - if n_name == "moontest:vacuum" then + if n_name == "moontest:vacuum" or n_name == "moontest:air" then minetest.remove_node(n_pos) end end