feat: remove bonus chests

This commit is contained in:
str1k3r committed 2026-09-30 02:54:29 -04:00
1 parent 7272b62d38
commit ca003f1afa
30 files changed
+8 -246

No files matched your search

+1 -4
View File
@@ -13,12 +13,11 @@ using namespace std;
ChestTileEntity::ChestTileEntity(bool isBonusChest/* = false*/) : TileEntity()
ChestTileEntity::ChestTileEntity() : TileEntity()
{
items = new ItemInstanceArray(9 * 4);
hasCheckedNeighbors = false;
this->isBonusChest = isBonusChest;
openness = 0.0f;
oOpenness = 0.0f;
@@ -108,7 +107,6 @@ void ChestTileEntity::load(CompoundTag *base)
unsigned int slot = tag->getByte(L"Slot") & 0xff;
if (slot >= 0 && slot < items->length) (*items)[slot] = ItemInstance::fromTag(tag);
}
isBonusChest = base->getBoolean(L"bonus");
}
void ChestTileEntity::save(CompoundTag *base)
@@ -127,7 +125,6 @@ void ChestTileEntity::save(CompoundTag *base)
}
}
base->put(L"Items", listTag);
base->putBoolean(L"bonus", isBonusChest);
}
int ChestTileEntity::getMaxStackSize()