Renamed the group

This commit is contained in:
the-real-herowl 2024-12-29 08:07:54 +01:00 committed by the-real-herowl
parent c9bc8ecbd2
commit 8f33a0678e
2 changed files with 2 additions and 2 deletions

View file

@ -207,7 +207,7 @@ tt.register_snippet(function(itemstring, _, itemstack)
local def = itemstack:get_definition() local def = itemstack:get_definition()
if not def then return end if not def then return end
if not def.groups._vl_fireworks_star or def.groups._vl_fireworks_star == 0 then return end if not def.groups.firework_star or def.groups.firework_star == 0 then return end
local s = "" local s = ""
local meta = itemstack:get_meta() local meta = itemstack:get_meta()

View file

@ -5,7 +5,7 @@ minetest.register_craftitem("vl_fireworks:firework_star", {
_doc_items_longdesc = S("A firework star is the key component of a firework rocket which is responsible for the visible explosion."), _doc_items_longdesc = S("A firework star is the key component of a firework rocket which is responsible for the visible explosion."),
wield_image = "vl_fireworks_star.png", wield_image = "vl_fireworks_star.png",
inventory_image = "vl_fireworks_star.png", inventory_image = "vl_fireworks_star.png",
groups = { craftitem = 1, _vl_fireworks_star = 1 }, groups = { craftitem = 1, firework_star = 1 },
stack_max = 64, stack_max = 64,
}) })