Refactor food holder visual update logic (#1584)

Simplified UpdateVisuals method in CP14ClientCookingSystem by consolidating parameters and using component fields directly. Also ensured FoodData field is dirtied after updating visuals in CP14SharedCookingSystem to trigger proper synchronization.
This commit is contained in:
Red
2025-07-27 17:18:25 +03:00
committed by GitHub
parent e020394f56
commit 5c0eb97571
2 changed files with 20 additions and 48 deletions

View File

@@ -209,6 +209,8 @@ public abstract partial class CP14SharedCookingSystem : EntitySystem
layer.Scale = new Vector2(-1, 1);
}
DirtyField(ent, ent.Comp, nameof(CP14FoodHolderComponent.FoodData));
//Sliceable
// > on server overrided side
}