mirror of
https://git.minetest.land/MineClone2/MineClone2.git
synced 2025-01-01 14:17:29 +01:00
Firework rockets are no longer infinite in survival
This commit is contained in:
parent
8e77fece50
commit
f8f30b7311
@ -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 New Issue
Block a user