mirror of
https://github.com/misternebula/quantum-space-buddies.git
synced 2025-02-21 00:39:53 +00:00
make QSBEyeProxyQuantumMoon match QSBQuantumMoon
This commit is contained in:
parent
b918b62663
commit
dc66aa7375
@ -1,4 +1,5 @@
|
||||
using QSB.Player;
|
||||
using System.Linq;
|
||||
|
||||
namespace QSB.QuantumSync.WorldObjects
|
||||
{
|
||||
@ -6,7 +7,8 @@ namespace QSB.QuantumSync.WorldObjects
|
||||
{
|
||||
public override void Init()
|
||||
{
|
||||
ControllingPlayer = QSBPlayerManager.LocalPlayerId;
|
||||
// smallest player id is the host
|
||||
ControllingPlayer = QSBPlayerManager.PlayerList.Min(x => x.PlayerId);
|
||||
base.Init();
|
||||
}
|
||||
}
|
||||
|
@ -7,9 +7,8 @@ namespace QSB.QuantumSync.WorldObjects
|
||||
{
|
||||
public override void Init()
|
||||
{
|
||||
ControllingPlayer = QSBCore.IsHost
|
||||
? QSBPlayerManager.LocalPlayerId
|
||||
: QSBPlayerManager.PlayerList.OrderBy(x => x.PlayerId).First().PlayerId;
|
||||
// smallest player id is the host
|
||||
ControllingPlayer = QSBPlayerManager.PlayerList.Min(x => x.PlayerId);
|
||||
base.Init();
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user