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.
This commit is contained in:
kabou 2022-12-31 10:41:39 +01:00
parent 3249c13752
commit 89821a8329

View File

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