From bf3fff7c53a7438a712225d2fa7febf4b0d2e124 Mon Sep 17 00:00:00 2001 From: LoneWolfHT Date: Tue, 8 Dec 2020 20:10:56 -0800 Subject: [PATCH] (API) Allow changing max stack size of grenades --- mods/pvp/grenades/init.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mods/pvp/grenades/init.lua b/mods/pvp/grenades/init.lua index 184e117..94615a3 100644 --- a/mods/pvp/grenades/init.lua +++ b/mods/pvp/grenades/init.lua @@ -135,7 +135,7 @@ function grenades.register_grenade(name, def) local newdef = {} newdef.description = def.description - newdef.stack_max = 1 + newdef.stack_max = def.stack_max or 1 newdef.range = 0 newdef.inventory_image = def.image newdef.on_use = function(itemstack, user, pointed_thing)