From 731d42196af9d30d0341b0c2bf728203724bfc30 Mon Sep 17 00:00:00 2001 From: AFCMS Date: Mon, 15 Mar 2021 09:02:45 +0100 Subject: [PATCH] fixes in mcl_cocoas --- mods/ITEMS/mcl_cocoas/depends.txt | 3 --- mods/ITEMS/mcl_cocoas/description.txt | 1 - mods/ITEMS/mcl_cocoas/init.lua | 5 +---- mods/ITEMS/mcl_cocoas/mod.conf | 3 +++ 4 files changed, 4 insertions(+), 8 deletions(-) delete mode 100644 mods/ITEMS/mcl_cocoas/depends.txt delete mode 100644 mods/ITEMS/mcl_cocoas/description.txt diff --git a/mods/ITEMS/mcl_cocoas/depends.txt b/mods/ITEMS/mcl_cocoas/depends.txt deleted file mode 100644 index 812afabce..000000000 --- a/mods/ITEMS/mcl_cocoas/depends.txt +++ /dev/null @@ -1,3 +0,0 @@ -mcl_sounds -mcl_core -doc? diff --git a/mods/ITEMS/mcl_cocoas/description.txt b/mods/ITEMS/mcl_cocoas/description.txt deleted file mode 100644 index 1af5d7ce0..000000000 --- a/mods/ITEMS/mcl_cocoas/description.txt +++ /dev/null @@ -1 +0,0 @@ -Cocoa pods which grow at jungle trees. Does not include cocoa beans. diff --git a/mods/ITEMS/mcl_cocoas/init.lua b/mods/ITEMS/mcl_cocoas/init.lua index 4395b7779..d0d96b300 100644 --- a/mods/ITEMS/mcl_cocoas/init.lua +++ b/mods/ITEMS/mcl_cocoas/init.lua @@ -3,10 +3,7 @@ local S = minetest.get_translator("mcl_cocoas") mcl_cocoas = {} -- Place cocoa -function mcl_cocoas.place(itemstack, placer, pointed_thing, plantname) - - local pt = pointed_thing - +function mcl_cocoas.place(itemstack, placer, pt, plantname) -- check if pointing at a node if not pt or pt.type ~= "node" then return diff --git a/mods/ITEMS/mcl_cocoas/mod.conf b/mods/ITEMS/mcl_cocoas/mod.conf index 923ea9785..867636191 100644 --- a/mods/ITEMS/mcl_cocoas/mod.conf +++ b/mods/ITEMS/mcl_cocoas/mod.conf @@ -1 +1,4 @@ name = mcl_cocoas +description = Cocoa pods which grow at jungle trees. Does not include cocoa beans. +depends = mcl_sounds, mcl_core +optional_depends = doc \ No newline at end of file