fix(rotation): compute placement data before setTile

This commit is contained in:
Jacobwasbeast
2026-03-11 22:39:02 -05:00
parent 5871a38fab
commit 7111d83082
5 changed files with 67 additions and 27 deletions

View File

@@ -492,6 +492,20 @@ bool HookManager::Install(const SymbolResolver& symbols)
}
}
if (symbols.Tile.pTileGetPlacedOnFaceDataValue)
{
if (MH_CreateHook(symbols.Tile.pTileGetPlacedOnFaceDataValue,
reinterpret_cast<void*>(&GameHooks::Hooked_TileGetPlacedOnFaceDataValue),
reinterpret_cast<void**>(&GameHooks::Original_TileGetPlacedOnFaceDataValue)) != MH_OK)
{
LogUtil::Log("[WeaveLoader] Warning: Failed to hook Tile::getPlacedOnFaceDataValue");
}
else
{
LogUtil::Log("[WeaveLoader] Hooked Tile::getPlacedOnFaceDataValue (rotation placement)");
}
}
if (symbols.Tile.pTileCloneTileId)
{
if (MH_CreateHook(symbols.Tile.pTileCloneTileId,