#198 Fix a crash, step 6

This commit is contained in:
kay27 2022-02-14 01:43:05 +00:00
parent e9e3479fb3
commit 3984c72bbc
1 changed files with 1 additions and 1 deletions

View File

@ -10,7 +10,7 @@ local function register_rocket(n, duration, force)
inventory_image = "mcl_fireworks_rocket.png",
stack_max = 64,
on_use = function(itemstack, user, pointed_thing)
if not user:is_player then return end
if not user:is_player() then return end
local elytra = mcl_playerplus.elytra[user:get_player_name()]
if elytra.active and elytra.rocketing <= 0 then
elytra.rocketing = duration