summaryrefslogtreecommitdiff
path: root/flowers.lua
diff options
context:
space:
mode:
authorTenPlus1 <kinsellaja@yahoo.com>2015-07-04 12:22:39 +0100
committerTenPlus1 <kinsellaja@yahoo.com>2015-07-04 12:22:39 +0100
commit023d0303c1c01508039c1de0b79c5b86e21cefb1 (patch)
tree74f54ea2dba1181cf58a9c4e1876cd1acaca3ad6 /flowers.lua
parent2bc7406c9a2112eba39e91c304dab74699093c4d (diff)
Code tidy and fixed fruit not dropping
Diffstat (limited to 'flowers.lua')
-rw-r--r--flowers.lua10
1 files changed, 5 insertions, 5 deletions
diff --git a/flowers.lua b/flowers.lua
index 413456f..15fbf9c 100644
--- a/flowers.lua
+++ b/flowers.lua
@@ -12,8 +12,8 @@ minetest.register_abm({
return
end
- local pos0 = {x=pos.x-4,y=pos.y-2,z=pos.z-4}
- local pos1 = {x=pos.x+4,y=pos.y+2,z=pos.z+4}
+ local pos0 = {x = pos.x - 4, y = pos.y - 2, z = pos.z - 4}
+ local pos1 = {x = pos.x + 4, y = pos.y + 2, z = pos.z + 4}
if #minetest.find_nodes_in_area(pos0, pos1, "group:flora") > 3 then
@@ -25,7 +25,7 @@ minetest.register_abm({
grass.y = grass.y - 1
if minetest.get_node(grass).name == "ethereal:crystal_dirt" then
grass.y = grass.y + 1
- minetest.set_node(grass, {name="ethereal:crystal_spike"})
+ minetest.set_node(grass, {name = "ethereal:crystal_spike"})
end
end
@@ -42,8 +42,8 @@ minetest.register_abm({
return
end
if minetest.get_node(seedling).name == "air" then
- minetest.set_node(seedling, {name=node.name})
+ minetest.set_node(seedling, {name = node.name})
end
end
end,
-})
+}) \ No newline at end of file