mirror of
https://github.com/space-wizards/RobustToolbox.git
synced 2026-02-15 03:30:53 +01:00
Fix exception when VVing non-networked components
The VV code forcibly dirties all components, which trips an assert for non-networked components.
This commit is contained in:
@@ -97,7 +97,7 @@ namespace Robust.Server.ViewVariables
|
||||
|
||||
// Auto-dirty component. Only works when modifying a field that is directly on a component,
|
||||
// Does not work for nested objects.
|
||||
if (Object is Component comp)
|
||||
if (Object is Component { NetSyncEnabled: true } comp)
|
||||
EntityManager.Dirty(comp.Owner, comp);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user