mirror of
https://git.minetest.land/MineClone2/MineClone2.git
synced 2024-11-28 05:43:43 +01:00
Make composter_progress_chance local, as it is not used anywhere except in mcl_composters
This commit is contained in:
parent
d09791db7b
commit
6741c5a809
@ -90,7 +90,7 @@ end
|
|||||||
---@param pos Vector Position of the node
|
---@param pos Vector Position of the node
|
||||||
---@param node node
|
---@param node node
|
||||||
---@param chance integer Value of "compostability" group of inserted item
|
---@param chance integer Value of "compostability" group of inserted item
|
||||||
function composter_progress_chance(pos, node, chance)
|
local function composter_progress_chance(pos, node, chance)
|
||||||
-- calculate leveling up chance
|
-- calculate leveling up chance
|
||||||
local rand = math.random(0,100)
|
local rand = math.random(0,100)
|
||||||
if chance >= rand then
|
if chance >= rand then
|
||||||
|
Loading…
Reference in New Issue
Block a user