Merge pull request #8 from Ride-A-Pig/master

Minimap bug fix
This commit is contained in:
Cold-Mint 2024-09-05 12:42:58 +08:00 committed by GitHub
commit ed4339f390
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -405,7 +405,7 @@ public static class MapGenerator
return false;
}
var sprite = new Sprite2D();
var sprite = new TextureRect();
sprite.Scale = new Vector2(Config.RoomPreviewScale, Config.RoomPreviewScale);
sprite.Texture = image;
sprite.Position = GameSceneDepend.MiniMapMidpointCoordinate + position.Value;