forked from MineClone5/MineClone5
#198 Fix a crash, step 6
This commit is contained in:
parent
e9e3479fb3
commit
3984c72bbc
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue