mirror of
https://bitbucket.org/kingarthursteam/cannons.git
synced 2025-01-24 10:41:25 +01: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()
|
||||
inv:set_size("gunpowder", 1)
|
||||
inv:set_size("muni", 1)
|
||||
itemstack:take_item(1)
|
||||
return itemstack
|
||||
end
|
||||
end
|
||||
|
Loading…
Reference in New Issue
Block a user