From 96469f85182c7b7af69aeffc172b871b5d289cf2 Mon Sep 17 00:00:00 2001 From: teknomunk Date: Fri, 3 Jan 2025 11:43:20 +0100 Subject: [PATCH] Fix elytra rocket crash (#4801) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Reviewed-on: https://git.minetest.land/VoxeLibre/VoxeLibre/pulls/4801 Reviewed-by: Mikita Wiśniewski Co-authored-by: teknomunk Co-committed-by: teknomunk --- mods/ITEMS/vl_fireworks/rockets.lua | 1 + 1 file changed, 1 insertion(+) diff --git a/mods/ITEMS/vl_fireworks/rockets.lua b/mods/ITEMS/vl_fireworks/rockets.lua index c5bd9f579..ab17e3639 100644 --- a/mods/ITEMS/vl_fireworks/rockets.lua +++ b/mods/ITEMS/vl_fireworks/rockets.lua @@ -165,6 +165,7 @@ local firework_def = { on_use = function(itemstack, user, pointed_thing) local elytra = mcl_playerplus.elytra[user] if elytra.active and elytra.rocketing <= 0 then + local meta = itemstack:get_meta() elytra.rocketing = meta:get_float("vl_fireworks:duration") if not core.is_creative_enabled(user:get_player_name()) then itemstack:take_item()