1
0
Fork 0

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 = {}
-- 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

View File

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