Co-authored-by: DrPerkyLegit <116128211+DrPerkyLegit@users.noreply.github.com>
Co-authored-by: github-actions <github-actions@github.com>
Co-authored-by: Anaël <60509176+Bakoubak@users.noreply.github.com>
Reviewed-on: https://git.neolegacy.dev/neoStudiosLCE/neoLegacy/pulls/4205
This commit is contained in:
committed 2026-11-11 18:46:44 +00:00
1 parent 880566324a
commit b75adc25aa
668 files changed
+19082 -5289

No files matched your search

+9 -1
View File
@@ -447,6 +447,11 @@ static std::wstring slabTypeToString(int tileId, int type)
return (type == StoneSlabTile2::RED_SANDSTONE_SLAB) ? L"red_sandstone" : L"unknown";
}
if (tileId == Tile::purpur_slab_Id || tileId == Tile::purpur_double_slab_Id)
{
return L"purpur";
}
static const std::wstring typeNames[] = {
L"stone", L"sandstone", L"wood", L"cobblestone",
L"brick", L"stone_brick", L"nether_brick", L"quartz"
@@ -460,7 +465,7 @@ static std::wstring slabPropsToString(int tileId, int composite)
bool top = (composite & HalfSlabTile::TOP_SLOT_BIT) != 0;
std::wstringstream ss;
ss << L"type: " << slabTypeToString(tileId, type);
if (tileId == Tile::wooden_slab_Id || tileId == Tile::stone_slab_Id || tileId == Tile::stone_slab2_Id)
if (tileId == Tile::wooden_slab_Id || tileId == Tile::stone_slab_Id || tileId == Tile::stone_slab2_Id || tileId == Tile::purpur_slab_Id)
{
ss << L"\n";
ss << L"half: " << (top ? L"top" : L"bottom");
@@ -678,6 +683,7 @@ static bool registerStairDecoder()
registerDecoder(Tile::acacia_stairs_Id, fn);
registerDecoder(Tile::dark_oak_stairs_Id, fn);
registerDecoder(Tile::red_sandstone_stairs_Id, fn);
registerDecoder(Tile::purpur_stairs_Id, fn);
return true;
}
@@ -735,6 +741,8 @@ static bool registerPlantDecoders()
registerDecoder(Tile::wooden_slab_Id, [](int composite)->std::wstring { return slabPropsToString(Tile::wooden_slab_Id, composite); });
registerDecoder(Tile::double_stone_slab2_Id, [](int composite)->std::wstring { return slabPropsToString(Tile::double_stone_slab2_Id, composite); });
registerDecoder(Tile::stone_slab2_Id, [](int composite)->std::wstring { return slabPropsToString(Tile::stone_slab2_Id, composite); });
registerDecoder(Tile::purpur_double_slab_Id, [](int composite)->std::wstring { return slabPropsToString(Tile::purpur_double_slab_Id, composite); });
registerDecoder(Tile::purpur_slab_Id, [](int composite)->std::wstring { return slabPropsToString(Tile::purpur_slab_Id, composite); });
registerDecoder(Tile::trapdoor_Id, [](int composite)->std::wstring { return trapDoorPropsToString(composite); });
registerDecoder(Tile::iron_trapdoor_Id, [](int composite)->std::wstring { return trapDoorPropsToString(composite); });
registerDecoder(Tile::tripwire_Id, [](int composite)->std::wstring { return tripWirePropsToString(composite); });