From 660dd227e8da03dd30361bc65edb2ce9cf8f49bc Mon Sep 17 00:00:00 2001 From: tenplus1 Date: Fri, 16 Jan 2015 21:05:58 +0000 Subject: Fixed dirt_with_snow melting bug --- water.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'water.lua') diff --git a/water.lua b/water.lua index 3ba84ef..24a8718 100644 --- a/water.lua +++ b/water.lua @@ -79,7 +79,7 @@ minetest.register_abm({ --nodenames = {"group:melts", "default:dirt_with_snow"}, --neighbors = {"group:hot"}, neighbors = {"fire:basic_fire", "default:lava_source", "default:lava_flowing", "default:furnace_active", "default:torch"}, - interval = 10, + interval = 1, -- 10 chance = 2, action = function(pos, node, active_object_count, active_object_count_wider) @@ -88,7 +88,7 @@ minetest.register_abm({ if node.name == "default:ice" or node.name == "default:snowblock" or node.name == "ethereal:icebrick" or node.name == "ethereal:snowbrick" then minetest.add_node(pos,{name="default:water_source"}) - elseif node.name == "default:snow" or string.split(node.name, ":")[1]then + elseif node.name == "default:snow" then -- or string.split(node.name, ":")[1]then minetest.add_node(pos,{name="default:water_flowing"}) elseif node.name == "default:dirt_with_snow" then minetest.add_node(pos,{name="default:dirt_with_grass"}) -- cgit v1.2.3