Banners Complete!

Fixed improper behaviors of banners to adhere to LCE, as well as redid the banner recipes!
This commit is contained in:
Tranqlmao
2026-07-15 14:50:09 -04:00
parent f3a4f21029
commit 454da0ce3c
15 changed files with 389 additions and 47 deletions
+4 -1
View File
@@ -48,6 +48,8 @@ void Recipes::_init()
void Recipes::_compileRecipes()
{
recipies->push_back(new BannerPatternRecipe());
addShapedRecipy(new ItemInstance(Tile::wood, 4, 0), //
L"sczg",
L"#", //
@@ -1634,6 +1636,7 @@ void Recipes::loadFromPacket(byteArray packetData)
DataInputStream input(&bais);
this->_wipeRecipes();
recipies->push_back(new BannerPatternRecipe());
{
int iCount = input.readInt();
for (int i = 0; i < iCount; i++) {
@@ -1662,4 +1665,4 @@ std::shared_ptr<CustomPayloadPacket> Recipes::createUpdatePacket()
}
return std::make_shared<CustomPayloadPacket>(CustomPayloadPacket::UPDATE_RECIPE_REGISTRY, baos.toByteArray());
}
}