V1kingGit / SpaceStationManager_Public

0 stars 0 forks source link

Mining doesn't work #52

Open V1kingGit opened 2 years ago

V1kingGit commented 2 years ago

Upon mining a piece of asteroid wall

NullReferenceException: Object reference not set to an instance of an object RegionManager.MergeRooms (RegionManager+Room room1, RegionManager+Room room2) (at Assets/Scripts/Managers/Local/RegionManager.cs:944) RegionManager.AddTile (UnityEngine.Vector3Int tilePos) (at Assets/Scripts/Managers/Local/RegionManager.cs:897) Construction.DeconstructTile (UnityEngine.Vector3Int position, CustomTile tile, System.Boolean isWall, System.Boolean wasConstruction, System.Boolean wasMining, System.Boolean giveMaterials) (at Assets/Scripts/Player/Construction.cs:783)

V1kingGit commented 2 years ago

Region edge case when a wall is destroyed, that creates its own region. Fixed.

V1kingGit commented 2 years ago

May be handled wrongly. Works temporarily.