Open main menu
Home
Random
Log in
Settings
About Stardew Valley Wiki
Disclaimers
Stardew Valley Wiki
Search
Changes
← Older edit
Newer edit →
Modding:Migrate to Stardew Valley 1.6
(view source)
Revision as of 18:19, 4 December 2023
5 bytes added
,
18:19, 4 December 2023
m
→Custom data fields
:
TryGet should be TryGetValue (From C# Dictionary)
Line 6,068:
Line 6,068:
{
{
CropData data = crop.GetData();
CropData data = crop.GetData();
−
if (data != null && data.CustomFields.
TryGet
("Example.FrameworkMod/WetTexture", out string textureName))
+
if (data != null && data.CustomFields.
TryGetValue
("Example.FrameworkMod/WetTexture", out string textureName))
{
{
// do magic
// do magic
Monsoonsheep
3
edits