[crops] Update to Git commit f8b33ae:

https://github.com/AntumDeluge/mtmod-crops/tree/f8b33ae
This commit is contained in:
AntumDeluge 2017-05-13 04:36:37 -07:00
parent aee2a5258d
commit df4cf8aa91
8 changed files with 9 additions and 9 deletions

View File

@ -483,7 +483,7 @@ The game includes the mods from the default [minetest_game](https://github.com/m
[patch.coloredwood]: https://github.com/AntumDeluge/mtmod-coloredwood/tree/ed6c46f
[patch.compassgps]: https://github.com/AntumDeluge/mtmod-compassgps/tree/888ec15
[patch.craftguide]: https://github.com/AntumDeluge/mtmod-craftguide/tree/89db504
[patch.crops]: https://github.com/AntumDeluge/mtmod-crops/tree/b79cf07
[patch.crops]: https://github.com/AntumDeluge/mtmod-crops/tree/f8b33ae
[patch.currency]: https://github.com/AntumDeluge/mtmod-currency/tree/7b0e29f
[patch.ethereal]: https://github.com/AntumDeluge/mtmod-ethereal/tree/4be06f0
[patch.fort_spikes]: https://github.com/AntumDeluge/mtmod-fort_spikes/tree/74dca42

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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