Minimap bug fix

修复小地图错位问题
This commit is contained in:
Ride_A_Pig 2024-09-05 12:34:41 +08:00
parent 781c50ee30
commit ab10d75b24

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;