summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAntumDeluge <antumdeluge@gmail.com>2017-05-12 23:40:30 -0700
committersofar <sofar+github@foo-projects.org>2017-09-30 11:44:27 -0700
commit98d859fc2225f6b1ad62f4d475703dc280a75dd0 (patch)
tree4729639217801671bc4ff6e7da78e312253946b1
parent144012f08278982820bd103951dd3e4140bfec9e (diff)
Replace deprecated method 'setting_getbool' with 'settings:get_bool'HEADv1origin/masterorigin/HEADmaster
-rw-r--r--corn.lua2
-rw-r--r--melon.lua2
-rw-r--r--polebean.lua4
-rw-r--r--potato.lua2
-rw-r--r--pumpkin.lua2
-rw-r--r--tomato.lua2
-rw-r--r--tools.lua2
7 files changed, 8 insertions, 8 deletions
diff --git a/corn.lua b/corn.lua
index c49fa2c..15dc886 100644
--- a/corn.lua
+++ b/corn.lua
@@ -36,7 +36,7 @@ minetest.register_node("crops:corn", {
return
end
crops.plant(pointed_thing.above, {name="crops:corn_base_seed", param2 = 3})
- if not minetest.setting_getbool("creative_mode") then
+ if not minetest.settings:get_bool("creative_mode") then
itemstack:take_item()
end
return itemstack
diff --git a/melon.lua b/melon.lua
index f92c9a1..696b108 100644
--- a/melon.lua
+++ b/melon.lua
@@ -40,7 +40,7 @@ minetest.register_node("crops:melon_seed", {
return
end
crops.plant(pointed_thing.above, {name="crops:melon_plant_1"})
- if not minetest.setting_getbool("creative_mode") then
+ if not minetest.settings:get_bool("creative_mode") then
itemstack:take_item()
end
return itemstack
diff --git a/polebean.lua b/polebean.lua
index 91ec758..afe8fb1 100644
--- a/polebean.lua
+++ b/polebean.lua
@@ -175,7 +175,7 @@ minetest.register_node("crops:beanpoles", {
end
minetest.set_node(pointed_thing.above, {name="crops:beanpole_base"})
minetest.set_node(top, {name="crops:beanpole_top"})
- if not minetest.setting_getbool("creative_mode") then
+ if not minetest.settings:get_bool("creative_mode") then
itemstack:take_item()
end
return itemstack
@@ -207,7 +207,7 @@ minetest.register_craftitem("crops:green_bean_seed", {
else
return
end
- if not minetest.setting_getbool("creative_mode") then
+ if not minetest.settings:get_bool("creative_mode") then
itemstack:take_item()
end
return itemstack
diff --git a/potato.lua b/potato.lua
index fbc529f..6f5130a 100644
--- a/potato.lua
+++ b/potato.lua
@@ -38,7 +38,7 @@ minetest.register_node("crops:potato_eyes", {
return
end
crops.plant(pointed_thing.above, {name="crops:potato_plant_1", param2 = 3})
- if not minetest.setting_getbool("creative_mode") then
+ if not minetest.settings:get_bool("creative_mode") then
itemstack:take_item()
end
return itemstack
diff --git a/pumpkin.lua b/pumpkin.lua
index 64ea77d..a64757d 100644
--- a/pumpkin.lua
+++ b/pumpkin.lua
@@ -40,7 +40,7 @@ minetest.register_node("crops:pumpkin_seed", {
return
end
crops.plant(pointed_thing.above, {name="crops:pumpkin_plant_1"})
- if not minetest.setting_getbool("creative_mode") then
+ if not minetest.settings:get_bool("creative_mode") then
itemstack:take_item()
end
return itemstack
diff --git a/tomato.lua b/tomato.lua
index 48b75b9..f70d914 100644
--- a/tomato.lua
+++ b/tomato.lua
@@ -36,7 +36,7 @@ minetest.register_node("crops:tomato_seed", {
return
end
crops.plant(pointed_thing.above, {name="crops:tomato_plant_1", param2 = 1})
- if not minetest.setting_getbool("creative_mode") then
+ if not minetest.settings:get_bool("creative_mode") then
itemstack:take_item()
end
return itemstack
diff --git a/tools.lua b/tools.lua
index cb80788..c6f9ee9 100644
--- a/tools.lua
+++ b/tools.lua
@@ -69,7 +69,7 @@ minetest.register_tool("crops:watering_can", {
water = math.min(water + crops.settings.watercan, crops.settings.watercan_max)
meta:set_int("crops_water", water)
- if not minetest.setting_getbool("creative_mode") then
+ if not minetest.settings:get_bool("creative_mode") then
itemstack:set_wear(math.min(65534, wear + (65535 / crops.settings.watercan_uses)))
end
return itemstack