mirror of
https://bitbucket.org/kingarthursteam/cannons.git
synced 2024-08-20 04:14:05 +02:00
fix infinite stacks
This commit is contained in:
parent
f2ac5f9dd6
commit
e91fb09e1a
@ -144,6 +144,7 @@ cannons.stand_on_rightclick = function(pos, node, player, itemstack, pointed_thi
|
|||||||
local inv = meta:get_inventory()
|
local inv = meta:get_inventory()
|
||||||
inv:set_size("gunpowder", 1)
|
inv:set_size("gunpowder", 1)
|
||||||
inv:set_size("muni", 1)
|
inv:set_size("muni", 1)
|
||||||
|
itemstack:take_item(1)
|
||||||
return itemstack
|
return itemstack
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user