Skip to content

Commit 73cdc6a

Browse files
authored
Merge pull request #602 from misternebula/dev
0.26.1
2 parents 192b624 + 10e6590 commit 73cdc6a

File tree

3 files changed

+10
-5
lines changed

3 files changed

+10
-5
lines changed

QSB/HUD/MultiplayerHUDManager.cs

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -119,10 +119,6 @@ private void OnWakeUp()
119119
HUDIconStack.Push(HUDIcon.TIMBER_HEARTH);
120120

121121
new PlanetMessage(HUDIcon.TIMBER_HEARTH).Send();
122-
123-
var playerMinimap = QSBWorldSync.GetUnityObjects<Minimap>().First(x => x.name == "Minimap_Root");
124-
_markerMaterial = Instantiate(playerMinimap._probeMarkerTransform.GetComponent<MeshRenderer>().material);
125-
_markerMaterial.color = Color.gray;
126122
}
127123

128124
public void UpdateMinimapMarkers(Minimap minimap)
@@ -177,6 +173,14 @@ private void AddMinimapMarker(PlayerInfo player, Minimap minimap)
177173
player.MinimapPlayerMarker.localScale = new Vector3(0.05f, 0.05f, 0.05f);
178174
player.MinimapPlayerMarker.localPosition = Vector3.zero;
179175
player.MinimapPlayerMarker.localRotation = Quaternion.identity;
176+
177+
if (_markerMaterial == null)
178+
{
179+
var playerMinimap = QSBWorldSync.GetUnityObjects<Minimap>().First(x => x.name == "Minimap_Root");
180+
_markerMaterial = Instantiate(playerMinimap._probeMarkerTransform.GetComponent<MeshRenderer>().material);
181+
_markerMaterial.color = new Color32(218, 115, 255, 255);
182+
}
183+
180184
player.MinimapPlayerMarker.GetComponent<MeshRenderer>().material = _markerMaterial;
181185
}
182186

QSB/HUD/PlayerBox.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99

1010
namespace QSB.HUD;
1111

12+
[UsedInUnityProject]
1213
public class PlayerBox : MonoBehaviour
1314
{
1415
public Text PlayerName;

QSB/manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"body": "- Disable *all* other mods. (Can heavily affect performance)\n- Make sure you are not running any other network-intensive applications."
88
},
99
"uniqueName": "Raicuparta.QuantumSpaceBuddies",
10-
"version": "0.26.0",
10+
"version": "0.26.1",
1111
"owmlVersion": "2.9.0",
1212
"dependencies": [ "_nebula.MenuFramework", "JohnCorby.VanillaFix" ],
1313
"pathsToPreserve": [ "debugsettings.json" ],

0 commit comments

Comments
 (0)