spawn with server authority so orbs dont do a little trolling

This commit is contained in:
JohnCorby 2021-12-21 11:45:40 -08:00
parent a75ecf143e
commit 5991058b28
4 changed files with 6 additions and 4 deletions

View File

@ -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();

View File

@ -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();

View File

@ -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();

View File

@ -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)
{