TU19: merge Minecraft.World/Blocks

This commit is contained in:
Tropical
2026-03-21 15:52:50 -05:00
parent f25cd66f4d
commit 9b6046cb83
242 changed files with 8083 additions and 4657 deletions

View File

@@ -26,7 +26,8 @@ void RedlightTile::onPlace(Level* level, int x, int y, int z) {
if (isLit && !level->hasNeighborSignal(x, y, z)) {
level->addToTickNextTick(x, y, z, id, 4);
} else if (!isLit && level->hasNeighborSignal(x, y, z)) {
level->setTile(x, y, z, Tile::redstoneLight_lit_Id);
level->setTileAndData(x, y, z, Tile::redstoneLight_lit_Id, 0,
UPDATE_CLIENTS);
}
}
}
@@ -37,7 +38,8 @@ void RedlightTile::neighborChanged(Level* level, int x, int y, int z,
if (isLit && !level->hasNeighborSignal(x, y, z)) {
level->addToTickNextTick(x, y, z, id, 4);
} else if (!isLit && level->hasNeighborSignal(x, y, z)) {
level->setTile(x, y, z, Tile::redstoneLight_lit_Id);
level->setTileAndData(x, y, z, Tile::redstoneLight_lit_Id, 0,
UPDATE_CLIENTS);
}
}
}
@@ -45,7 +47,8 @@ void RedlightTile::neighborChanged(Level* level, int x, int y, int z,
void RedlightTile::tick(Level* level, int x, int y, int z, Random* random) {
if (!level->isClientSide) {
if (isLit && !level->hasNeighborSignal(x, y, z)) {
level->setTile(x, y, z, Tile::redstoneLight_Id);
level->setTileAndData(x, y, z, Tile::redstoneLight_Id, 0,
UPDATE_CLIENTS);
}
}
}