From f73e8b7053c28f2dbf11888cb10b428c716e36fc Mon Sep 17 00:00:00 2001 From: HybridDog Date: Fri, 13 Mar 2015 19:51:42 +0100 Subject: [PATCH] little code change --- init.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/init.lua b/init.lua index e73f181..08e4ef9 100644 --- a/init.lua +++ b/init.lua @@ -230,7 +230,7 @@ minetest.register_on_generated(function(minp, maxp, seed) vm:update_liquids() vm:write_to_map() - for _,v in ipairs(tab) do + for _,v in pairs(tab) do nyanland:grow_mesetree(v) end @@ -328,8 +328,8 @@ minetest.register_abm( {nodenames = {"default:nyancat"}, interval = 10, chance = 100, - action = function(pos, node, active_object_count, active_object_count_wider) - if pos.y>NYANLAND_HEIGHT then + action = function(pos) + if pos.y > NYANLAND_HEIGHT then minetest.remove_node(pos) minetest.add_entity(pos, "nyanland:head_entity") minetest.sound_play("nyanland_cat", {pos = pos, gain = 0.9, max_hear_distance = 35})