mirror of
https://github.com/Jacobwasbeast/LegacyWeaveLoader.git
synced 2026-05-30 01:24:30 +00:00
fix(runtime): fix chunk remap setTile crashes and use missing block fallback
- Clear invalid block IDs before setTile to prevent setTileAndData crashes - Add CompressedTileStorage::set for direct block write when Tile::tiles[old] is null - Use missing block placeholder with API-resolved IDs instead of bedrock - Work around raw_pdb GetRecordAtOffset removal via ForEachSymbol iteration
This commit is contained in:
@@ -21,11 +21,13 @@ bool HookManager::Install(const SymbolResolver& symbols)
|
||||
}
|
||||
|
||||
WorldIdRemap::SetTagNewTagSymbol(symbols.pTagNewTag);
|
||||
WorldIdRemap::SetTileArraySymbol(symbols.pTileTiles);
|
||||
WorldIdRemap::SetLevelChunkTileSymbols(
|
||||
symbols.pLevelChunkGetTile,
|
||||
symbols.pLevelChunkSetTile,
|
||||
symbols.pLevelChunkGetPos,
|
||||
symbols.pLevelChunkGetHighestNonEmptyY);
|
||||
WorldIdRemap::SetCompressedTileStorageSetSymbol(symbols.pCompressedTileStorageSet);
|
||||
|
||||
if (symbols.pRunStaticCtors)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user