Changes
Jump to navigation
Jump to search
← 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
Navigation menu
Personal tools
Create account
Log in
Namespaces
Modding
Discussion
Variants
Views
Read
View source
View history
More
Search
Navigation
Main page
Recent changes
Admin noticeboard
Help Editing
Random page
Official Links
Official Site
Official Forums
Official Merchandise
Discord
Reddit
Tools
Upload file
Special pages
Printable version