Rename cocoa pod placement function.
* Rename cocoa pod placement function to match the `on_place` call in the cocoa pods item definition. * Make the function local, there are no callers outside of mcl_cocoas.test_mob_tweaks_branch
parent
3249c13752
commit
89821a8329
|
@ -3,7 +3,7 @@ local S = minetest.get_translator(minetest.get_current_modname())
|
||||||
mcl_cocoas = {}
|
mcl_cocoas = {}
|
||||||
|
|
||||||
-- Place cocoa
|
-- Place cocoa
|
||||||
function mcl_cocoas.place(itemstack, placer, pt, plantname)
|
local function cocoa_place(itemstack, placer, pt, plantname)
|
||||||
-- 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
|
||||||
|
|
Loading…
Reference in New Issue