diff options
author | tenplus1 <kinsellaja@yahoo.com> | 2014-11-25 13:03:30 +0000 |
---|---|---|
committer | tenplus1 <kinsellaja@yahoo.com> | 2014-11-25 13:03:30 +0000 |
commit | 3ab99e353f4d30058801b077ac560f287c731309 (patch) | |
tree | fd4fb653e8a35d8be298097a08bb33bae376412d | |
parent | f3572e569f61a3213e8ba26c5b4da16936794be7 (diff) |
bug fixes
-rw-r--r-- | mapgen_v7l.lua | 3 | ||||
-rw-r--r-- | mapgen_v7s.lua | 3 | ||||
-rw-r--r-- | plantlife.lua | 2 | ||||
-rw-r--r-- | sealife.lua | 2 |
4 files changed, 4 insertions, 6 deletions
diff --git a/mapgen_v7l.lua b/mapgen_v7l.lua index be4c2b5..b48e481 100644 --- a/mapgen_v7l.lua +++ b/mapgen_v7l.lua @@ -517,8 +517,7 @@ minetest.register_on_generated(function(minp, maxp, seed) local z = pr:next(z0, z1)
if minetest.get_node({x=x,y=1,z=z}).name == "default:sand" and
minetest.find_node_near({x=x,y=1,z=z}, 1, "default:water_source") then
- schematic = path.."palmtree.mts"
- minetest.place_schematic({x=x-4,y=2,z=z-4}, schematic, 0, "", 0)
+ minetest.place_schematic({x=x-4,y=2,z=z-4}, path.."palmtree.mts", 0, "", 0)
end
end
end
diff --git a/mapgen_v7s.lua b/mapgen_v7s.lua index 0453487..bd0e722 100644 --- a/mapgen_v7s.lua +++ b/mapgen_v7s.lua @@ -574,8 +574,7 @@ minetest.register_on_generated(function(minp, maxp, seed) local z = pr:next(z0, z1)
if minetest.get_node({x=x,y=1,z=z}).name == "default:sand" and
minetest.find_node_near({x=x,y=1,z=z}, 1, "default:water_source") then
- schematic = path.."palmtree.mts"
- minetest.place_schematic({x=x-4,y=2,z=z-4}, schematic, 0, '', 0)
+ minetest.place_schematic({x=x-4,y=2,z=z-4}, path.."palmtree.mts", 0, '', 0)
end
end
end
diff --git a/plantlife.lua b/plantlife.lua index c252efc..71f55f5 100644 --- a/plantlife.lua +++ b/plantlife.lua @@ -178,7 +178,7 @@ minetest.register_node("ethereal:orange", { type = "fixed", fixed = {-0.2, -0.3, -0.2, 0.2, 0.2, 0.2} }, - groups = {fleshy=3,dig_immediate=3,flammable=2,leafdecay=1,leafdecay_drop=1}, + groups = {fleshy=3,dig_immediate=3,flammable=2,leafdecay=3,leafdecay_drop=1}, on_use = minetest.item_eat(4), sounds = default.node_sound_leaves_defaults(), after_place_node = function(pos, placer, itemstack) diff --git a/sealife.lua b/sealife.lua index 7d31a38..2dafa25 100644 --- a/sealife.lua +++ b/sealife.lua @@ -129,7 +129,7 @@ minetest.register_abm({ action = function(pos, node) - sel = math.random(1,5) + local sel = math.random(1,5) if sel == 1 or minetest.get_node(pos).name == "ethereal:seaweed" then local height = 0 |