Skip to content

Commit

Permalink
Fix crash
Browse files Browse the repository at this point in the history
  • Loading branch information
LoneWolfHT committed Dec 5, 2023
1 parent a06b163 commit 278930b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mods/pvp/grenades/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ function grenades.register_grenade(name, def)
if pointed_thing.type ~= "node" then
grenades.throw_grenade(name, 17, user)

if not minetest.settings:get_bool("creative_mode") and def.stack_max > -1 then
if not minetest.settings:get_bool("creative_mode") and (def.stack_max or 99) > -1 then
itemstack:take_item(1)
end
end
Expand Down

0 comments on commit 278930b

Please sign in to comment.