Skip to content

Commit

Permalink
Get texture id from tiledata
Browse files Browse the repository at this point in the history
  • Loading branch information
kaczy93 committed Jan 21, 2024
1 parent 12b94f7 commit f6877f7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CentrED/Map/LandObject.cs
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ public void UpdateId(ushort newId)
var useTexMap = isTexMapValid && (Config.Instance.PreferTexMaps || isStretched);
if (useTexMap)
{
Texture = TexmapsLoader.Instance.GetLandTexture(newId, out bounds);
Texture = TexmapsLoader.Instance.GetLandTexture(TileDataLoader.Instance.LandData[newId].TexID, out bounds);
}
else
{
Expand Down

0 comments on commit f6877f7

Please sign in to comment.