mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-07 03:51:50 +00:00
fix bazalt_breaker with infinite items enabled
This commit is contained in:
parent
bbfc0dbf17
commit
5384843892
1 changed files with 3 additions and 1 deletions
|
|
@ -1,4 +1,6 @@
|
|||
function on_block_break_by(x, y, z, pid)
|
||||
block.set(x, y, z, 0, 0)
|
||||
inventory.use(player.get_inventory(pid))
|
||||
if not player.is_infinite_items(pid) then
|
||||
inventory.use(player.get_inventory(pid))
|
||||
end
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue