Allow gib spwaning by non hosts if they own the prop

This commit is contained in:
Josh Mobley
2026-07-09 19:55:53 +01:00
committed by Lorenz Junglas
parent 55c2ede7fb
commit 1c1f2d60c0

View File

@@ -528,7 +528,7 @@ public class Prop : Component, Component.ExecuteInEditor, Component.IDamageable
if ( Model is null )
return gibs;
var spawnServerGibs = !Network.IsProxy;
var spawnServerGibs = Networking.IsHost;
var spawnClientGibs = !Application.IsDedicatedServer;
var breaklist = Model.GetData<ModelBreakPiece[]>();
@@ -582,7 +582,7 @@ public class Prop : Component, Component.ExecuteInEditor, Component.IDamageable
{
gib.Tags.Add( "debris", "clientside" ); // no physics interactions
}
else if ( !IsProxy )
else if ( Networking.IsHost )
{
// Spawn on the network
gib.NetworkSpawn( true, null );