Changes

Jump to navigation Jump to search
→‎Other item changes for C# mods: update for build 23173 (fixed crabPot.getOne issue, reworked how getOne works)
Line 2,181: Line 2,181:  
<li>Removed <samp>crop.InferSeedIndex()</samp>. This was used to support old crops, which are now fixed by a save migration instead.</li>
 
<li>Removed <samp>crop.InferSeedIndex()</samp>. This was used to support old crops, which are now fixed by a save migration instead.</li>
 
<li>Modularized <samp>Object.CheckForAction</samp> to simplify mod patches.</li>
 
<li>Modularized <samp>Object.CheckForAction</samp> to simplify mod patches.</li>
 +
<li>Reworked <samp>Item.getOne()</samp> implementation to avoid common pitfalls. (This only affects mods with custom item classes, or which patch <samp>Item.getOne</samp> or <samp>Item._GetOneFrom</samp>.)</li>
 +
<li>Fixed <samp>crabPot.getOne()</samp> not returning a <samp>CrabPot</samp> instance.</li>
 
</ul>
 
</ul>
  
translators
8,447

edits

Navigation menu