Firework rockets are no longer infinite in survival

This commit is contained in:
the-real-herowl 2024-12-28 23:24:40 +01:00 committed by the-real-herowl
parent 8e77fece50
commit f8f30b7311

@ -176,6 +176,10 @@ local firework_def = {
on_place = function(itemstack, user, pointed_thing)
local pos = pointed_thing.above
vl_fireworks.shoot_firework(itemstack, pos)
if mcl_gamemode.get_gamemode(user) ~= "creative" then
itemstack:take_item()
return itemstack
end
end,
_on_dispense = function(dropitem, pos, droppos, dropnode, dropdir)
vl_fireworks.shoot_firework(dropitem, pos, dropdir)