(API) Allow changing max stack size of grenades
This commit is contained in:
parent
6e04df9c4d
commit
bf3fff7c53
1 changed files with 1 additions and 1 deletions
|
@ -135,7 +135,7 @@ function grenades.register_grenade(name, def)
|
||||||
local newdef = {}
|
local newdef = {}
|
||||||
|
|
||||||
newdef.description = def.description
|
newdef.description = def.description
|
||||||
newdef.stack_max = 1
|
newdef.stack_max = def.stack_max or 1
|
||||||
newdef.range = 0
|
newdef.range = 0
|
||||||
newdef.inventory_image = def.image
|
newdef.inventory_image = def.image
|
||||||
newdef.on_use = function(itemstack, user, pointed_thing)
|
newdef.on_use = function(itemstack, user, pointed_thing)
|
||||||
|
|
Loading…
Reference in a new issue