mirror of
https://git.minetest.land/VoxeLibre/VoxeLibre.git
synced 2025-03-11 06:07:44 +01:00
Firework rockets are no longer infinite in survival
This commit is contained in:
parent
8e77fece50
commit
f8f30b7311
1 changed files with 4 additions and 0 deletions
|
@ -176,6 +176,10 @@ local firework_def = {
|
|||
on_place = function(itemstack, user, pointed_thing)
|
||||
local pos = pointed_thing.above
|
||||
vl_fireworks.shoot_firework(itemstack, pos)
|
||||
if mcl_gamemode.get_gamemode(user) ~= "creative" then
|
||||
itemstack:take_item()
|
||||
return itemstack
|
||||
end
|
||||
end,
|
||||
_on_dispense = function(dropitem, pos, droppos, dropnode, dropdir)
|
||||
vl_fireworks.shoot_firework(dropitem, pos, dropdir)
|
||||
|
|
Loading…
Reference in a new issue