From 24ae30c8398eaa00ca128cb46fdc2be56463a83b Mon Sep 17 00:00:00 2001 From: Ellpeck Date: Thu, 17 Jun 2021 19:49:03 +0200 Subject: [PATCH] stop using obsolete WornClothes --- ExampleMod.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ExampleMod.cs b/ExampleMod.cs index 28378c5..82118e8 100644 --- a/ExampleMod.cs +++ b/ExampleMod.cs @@ -51,7 +51,7 @@ namespace ExampleMod { if (o is Person person) { // changing the walk speed to be doubled if a person is wearing our dark shirt person.OnGetWalkSpeed += (ref float s) => { - if (person.WornClothes.TryGetValue(ClothesLayer.Shirt, out var shirt) && shirt.Type == darkShirt) + if (person.CurrentOutfit.TryGetValue(ClothesLayer.Shirt, out var shirt) && shirt.Type == darkShirt) s *= 2; }; }