fixes in mcl_cocoas

This commit is contained in:
AFCMS 2021-03-15 09:02:45 +01:00
parent bd9713ab50
commit 731d42196a
4 changed files with 4 additions and 8 deletions

View file

@ -1,3 +0,0 @@
mcl_sounds
mcl_core
doc?

View file

@ -1 +0,0 @@
Cocoa pods which grow at jungle trees. Does not include cocoa beans.

View file

@ -3,10 +3,7 @@ local S = minetest.get_translator("mcl_cocoas")
mcl_cocoas = {} mcl_cocoas = {}
-- Place cocoa -- Place cocoa
function mcl_cocoas.place(itemstack, placer, pointed_thing, plantname) function mcl_cocoas.place(itemstack, placer, pt, plantname)
local pt = pointed_thing
-- check if pointing at a node -- check if pointing at a node
if not pt or pt.type ~= "node" then if not pt or pt.type ~= "node" then
return return

View file

@ -1 +1,4 @@
name = mcl_cocoas name = mcl_cocoas
description = Cocoa pods which grow at jungle trees. Does not include cocoa beans.
depends = mcl_sounds, mcl_core
optional_depends = doc