mirror of
https://github.com/misternebula/quantum-space-buddies.git
synced 2025-03-09 22:14:26 +00:00
spawn with server authority so orbs dont do a little trolling
This commit is contained in:
parent
a75ecf143e
commit
5991058b28
@ -1,4 +1,5 @@
|
||||
using QSB.Anglerfish.TransformSync;
|
||||
using QSB.Utility;
|
||||
using QSB.WorldSync;
|
||||
using QuantumUNET;
|
||||
using UnityEngine;
|
||||
@ -17,7 +18,7 @@ namespace QSB.Anglerfish.WorldObjects
|
||||
{
|
||||
if (QSBCore.IsHost)
|
||||
{
|
||||
QNetworkServer.Spawn(Object.Instantiate(QSBNetworkManager.Instance.AnglerPrefab));
|
||||
Object.Instantiate(QSBNetworkManager.Instance.AnglerPrefab).SpawnWithServerAuthority();
|
||||
}
|
||||
|
||||
StartDelayedReady();
|
||||
|
@ -1,4 +1,5 @@
|
||||
using QSB.JellyfishSync.TransformSync;
|
||||
using QSB.Utility;
|
||||
using QSB.WorldSync;
|
||||
using QuantumUNET;
|
||||
using UnityEngine;
|
||||
@ -16,7 +17,7 @@ namespace QSB.JellyfishSync.WorldObjects
|
||||
|
||||
if (QSBCore.IsHost)
|
||||
{
|
||||
QNetworkServer.Spawn(Object.Instantiate(QSBNetworkManager.Instance.JellyfishPrefab));
|
||||
Object.Instantiate(QSBNetworkManager.Instance.JellyfishPrefab).SpawnWithServerAuthority();
|
||||
}
|
||||
|
||||
StartDelayedReady();
|
||||
|
@ -14,7 +14,7 @@ namespace QSB.OrbSync.WorldObjects
|
||||
{
|
||||
if (QSBCore.IsHost)
|
||||
{
|
||||
QNetworkServer.Spawn(Object.Instantiate(QSBNetworkManager.Instance.OrbPrefab));
|
||||
Object.Instantiate(QSBNetworkManager.Instance.OrbPrefab).SpawnWithServerAuthority();
|
||||
}
|
||||
|
||||
StartDelayedReady();
|
||||
|
@ -5,7 +5,7 @@ namespace QSB.Tools.TranslatorTool.TranslationSync
|
||||
{
|
||||
internal class SpiralManager : WorldObjectManager
|
||||
{
|
||||
public override WorldObjectType WorldObjectType => WorldObjectType.SolarSystem;
|
||||
public override WorldObjectType WorldObjectType => WorldObjectType.Both;
|
||||
|
||||
protected override void RebuildWorldObjects(OWScene scene)
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user