Stardew Valley 1.3 introduces some gotchas for mods. In particular, net fields (like NetInt) handle implicit conversions in a way that's likely to cause mod bugs. For example, item?.category == null && item?.category != null can both be true at once, and building.indoors != null will be true for a null value in some cases.
Add C# analyzers to the mod build config package so modders see warnings in Visual Studio for problematic code.
Stardew Valley 1.3 introduces some gotchas for mods. In particular, net fields (like
NetInt
) handle implicit conversions in a way that's likely to cause mod bugs. For example,item?.category == null && item?.category != null
can both be true at once, andbuilding.indoors != null
will be true for a null value in some cases.Add C# analyzers to the mod build config package so modders see warnings in Visual Studio for problematic code.