mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-04 18:41:51 +00:00
implement actual items dropping
This commit is contained in:
parent
89afcd15db
commit
5b154b57b3
4 changed files with 22 additions and 15 deletions
|
|
@ -12,6 +12,9 @@ ItemStack::ItemStack(itemid_t item, itemcount_t count) : item(item), count(count
|
|||
void ItemStack::set(const ItemStack& item) {
|
||||
this->item = item.item;
|
||||
this->count = item.count;
|
||||
if (count == 0) {
|
||||
this->item = 0;
|
||||
}
|
||||
}
|
||||
|
||||
bool ItemStack::accepts(const ItemStack& other) const {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue