SMAPI - Stardew Modding API

SMAPI - Stardew Modding API

971k Downloads

Allow reflection into Game1

Pathoschild opened this issue ยท 1 comments

commented

SMAPI 2.0 prevents mods from reflecting into SMAPI internals using the SMAPI reflection API, but that also prevents reflection into SMAPI subclasses (even if the mod is reflecting into the vanilla base class).

Sample code:

helper.Reflection.GetPrivateMethod(Game1.game1, "drawFarmBuildings").Invoke();
commented

Fixed in develop for the upcoming SMAPI 2.1 release.