Changes
Jump to navigation
Jump to search
← Older edit
Modding:Modder Guide/Get Started
(view source)
Revision as of 12:19, 1 April 2024
1 byte added
,
1 April
m
Mark sender object as nullable. This prevents the code showing a warning. Note: other wiki pages like https://stardewvalleywiki.com/Modding:Modder_Guide/APIs/Events#How_do_I_use_them.3F have correct code snippets.
Line 120:
Line 120:
/// <param name="sender">The event sender.</param>
/// <param name="sender">The event sender.</param>
/// <param name="e">The event data.</param>
/// <param name="e">The event data.</param>
−
private void OnButtonPressed(object sender, ButtonPressedEventArgs e)
+
private void OnButtonPressed(object
?
sender, ButtonPressedEventArgs e)
{
{
// ignore if player hasn't loaded a save yet
// ignore if player hasn't loaded a save yet
Hobothehill
1
edit
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