summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortenplus1 <kinsellaja@yahoo.com>2014-12-10 10:51:27 +0000
committertenplus1 <kinsellaja@yahoo.com>2014-12-10 10:51:27 +0000
commit9ffbbf4c0ed89078a8411e29a3de45aad8034205 (patch)
tree2a40ba53c20d5714be19da3fdea2e8261f57ea2e
parent47bee0ee4882d654d9d9737c7854dc8f1be99e48 (diff)
Update: added check for unloaded map
-rw-r--r--README.txt2
-rw-r--r--init.lua2
-rw-r--r--soil.lua5
3 files changed, 7 insertions, 2 deletions
diff --git a/README.txt b/README.txt
index 6aeab25..9fe956c 100644
--- a/README.txt
+++ b/README.txt
@@ -11,7 +11,7 @@ This mod works by adding your new plant to the {growing=1} group and numbering t
Changelog:
-1.10 - Added Blueberry Bush and Blueberry Muffins, also Pumpkin/Melon easier to pick up
+1.10 - Added Blueberry Bush and Blueberry Muffins, also Pumpkin/Melon easier to pick up, added check for unloaded map
1.09 - Corn now uses single nodes instead of 1 ontop of the other, Ethanol recipe is more expensive (requires 5 corn) and some code cleanup.
1.08 - Added Farming Plus compatibility, plus can be removed and no more missing nodes
1.07 - Added Rhubarb and Rhubarb Pie
diff --git a/init.lua b/init.lua
index 6fb997a..5a67b05 100644
--- a/init.lua
+++ b/init.lua
@@ -1,5 +1,5 @@
--[[
- Minetest Farming Redo Mod 1.10 (4th November 2014)
+ Minetest Farming Redo Mod 1.10 (10th December 2014)
by TenPlus1
]]
diff --git a/soil.lua b/soil.lua
index b459273..e1863bc 100644
--- a/soil.lua
+++ b/soil.lua
@@ -44,6 +44,11 @@ minetest.register_abm({
minetest.set_node(pos, {name="default:dirt"})
end
+ -- if map around soil not loaded then skip until loaded
+ if minetest.find_node_near(pos, 3, {"ignore"}) then
+ return
+ end
+
-- check if there is water nearby and change soil accordingly
if minetest.find_node_near(pos, 3, {"group:water"}) then
if node.name == "farming:soil" then