mirror of
https://github.com/Jacobwasbeast/LegacyWeaveLoader.git
synced 2026-07-02 09:04:22 +00:00
fix(rotation): compute placement data before setTile
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user