SMAPI - Stardew Modding API

SMAPI - Stardew Modding API

971k Downloads

Add code analyzers to detect Stardew Valley 1.3 issues

Pathoschild opened this issue ยท 1 comments

commented

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.

commented

Done in develop for the upcoming SMAPI 2.6 release.