fix again
authorMaciej Kasatkin <mk@realbadangel.pl>
Sun, 7 Oct 2012 19:32:18 +0000 (21:32 +0200)
committerMaciej Kasatkin <mk@realbadangel.pl>
Sun, 7 Oct 2012 19:32:18 +0000 (21:32 +0200)
rubber.lua

index 0d1f9b9f04f167dd3d0388bdfd88a4124507adca..311f3af8ae8ddec4e9a66121f9f1af90453ec559 100644 (file)
@@ -71,7 +71,7 @@ minetest.register_abm({
        interval = 60,
        chance = 20,
        action = function(pos, node)
-               technic:generate_tree(pos, "technic:rubber_tree_full", "technic:rubber_leaves", {"default:dirt", "default:dirt_with_grass"})
+               generate_tree(pos, "technic:rubber_tree_full", "technic:rubber_leaves", {"default:dirt", "default:dirt_with_grass"})
        end
 })
 
@@ -82,7 +82,7 @@ minetest.register_on_generated(function(minp, maxp, blockseed)
        local tmp = {x=(maxp.x-minp.x)/2+minp.x, y=(maxp.y-minp.y)/2+minp.y, z=(maxp.z-minp.z)/2+minp.z}
        local pos = minetest.env:find_node_near(tmp, maxp.x-minp.x, {"default:dirt_with_grass"})
        if pos ~= nil then
-               technic:generate_tree({x=pos.x, y=pos.y+1, z=pos.z}, "technic:rubber_tree_full", "technic:rubber_leaves", {"default:dirt", "default:dirt_with_grass"})
+               generate_tree({x=pos.x, y=pos.y+1, z=pos.z}, "technic:rubber_tree_full", "technic:rubber_leaves", {"default:dirt", "default:dirt_with_grass"})
        end
 end)