Skip to content

Commit

Permalink
Merge pull request #464 from PhantomGamers/pr-0.7.1
Browse files Browse the repository at this point in the history
0.7.1 with DSP 0.8.22.9331 support
  • Loading branch information
PhantomGamers authored Oct 29, 2021
2 parents caa87ee + 2f7bcb1 commit a86d9c0
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 1 deletion.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
## Changelog

0.7.1:

- @starfi5h: Fixed research desync issues
- @sp00ktober: Fixed error when client upgrades buildings on different planet from the host.
- @PhantomGamers: Fixed compatibility with DSP 0.8.22.9331+

0.7.0:

- @phantomgamers: Fixed instance where error would trigger by loading saves made on earlier Nebula versions. **WARNING: All previous client inventory and position data will be lost!** (should be for the last time!)
Expand Down
6 changes: 6 additions & 0 deletions NebulaWorld/RemotePlayerModel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ public RemotePlayerModel(ushort playerId, string username)
PlayerTransform.gameObject.name = $"Remote Player ({playerId})";

PlayerInstance = new global::Player();
PlayerInstance.transform = PlayerTransform;
MechaInstance = new Mecha();
PlayerInstance.mecha = MechaInstance;
MechaInstance.Init(PlayerInstance);
Expand All @@ -59,6 +60,11 @@ public RemotePlayerModel(ushort playerId, string username)
Material mat = MechaInstance.droneRenderer.mat_0;
mat.CopyPropertiesFromMaterial(Configs.builtin.mechaDroneMat);

//Fix MechaArmorModel
PlayerInstance.mechaArmorModel = PlayerTransform.GetComponentInChildren<MechaArmorModel>();
PlayerInstance.mechaArmorModel.player = PlayerInstance;
PlayerInstance.mechaArmorModel.mecha = MechaInstance;

PlayerId = playerId;
Username = username;
}
Expand Down
2 changes: 1 addition & 1 deletion version.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"$schema": "https://raw.githubusercontent.com/dotnet/Nerdbank.GitVersioning/master/src/NerdBank.GitVersioning/version.schema.json",
"version": "0.7.0",
"version": "0.7.1",
"assemblyVersion": {
"precision": "build"
},
Expand Down

0 comments on commit a86d9c0

Please sign in to comment.