From 450c2be4c331387d6d91841e52df0e30083ed4dc Mon Sep 17 00:00:00 2001 From: tenplus1 Date: Thu, 9 Apr 2015 09:56:10 +0100 Subject: [PATCH] Simplified cocoa farming --- cocoa.lua | 6 +----- init.lua | 2 +- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/cocoa.lua b/cocoa.lua index 30f2307..0c76f26 100644 --- a/cocoa.lua +++ b/cocoa.lua @@ -1,8 +1,4 @@ --- Override default jungletree, add tree=2 for cocoa placement - -minetest.override_item("default:jungletree", {groups = {tree=2,choppy=2,oddly_breakable_by_hand=1,flammable=2}}) - -- Place Cocoa function place_cocoa(itemstack, placer, pointed_thing, plantname) @@ -21,7 +17,7 @@ function place_cocoa(itemstack, placer, pointed_thing, plantname) end -- check if pointing at jungletree - if minetest.get_item_group(under.name, "tree") ~= 2 then + if under.name ~= "default:jungletree" then return end diff --git a/init.lua b/init.lua index f2c4dc7..3605d90 100644 --- a/init.lua +++ b/init.lua @@ -1,5 +1,5 @@ --[[ - Minetest Farming Redo Mod 1.12 (1st March 2015) + Minetest Farming Redo Mod 1.12 (9th April 2015) by TenPlus1 ]]