forked from VoxeLibre/VoxeLibre
Makes fireworks rockets infinite in creative mode
This commit is contained in:
parent
62adbb9625
commit
c46c07f836
|
@ -15,7 +15,9 @@ local function register_rocket(n, duration, force)
|
||||||
local elytra = mcl_playerplus.elytra[user]
|
local elytra = mcl_playerplus.elytra[user]
|
||||||
if elytra.active and elytra.rocketing <= 0 then
|
if elytra.active and elytra.rocketing <= 0 then
|
||||||
elytra.rocketing = duration
|
elytra.rocketing = duration
|
||||||
|
if not minetest.is_creative_enabled(user:get_player_name()) then
|
||||||
itemstack:take_item()
|
itemstack:take_item()
|
||||||
|
end
|
||||||
minetest.sound_play("mcl_fireworks_rocket", {pos = user:get_pos()})
|
minetest.sound_play("mcl_fireworks_rocket", {pos = user:get_pos()})
|
||||||
end
|
end
|
||||||
return itemstack
|
return itemstack
|
||||||
|
|
Loading…
Reference in New Issue