Fixed bug due to accidental early commit
This commit is contained in:
parent
c145e5f727
commit
210db71a92
|
@ -92,9 +92,9 @@ namespace StardewModdingAPI.Events
|
|||
public Farmer PriorFarmer { get; private set; }
|
||||
}
|
||||
|
||||
public class EventArgsInventory : EventArgs
|
||||
public class EventArgsInventoryChanged : EventArgs
|
||||
{
|
||||
public EventArgsInventory(List<Item> inventory)
|
||||
public EventArgsInventoryChanged(List<Item> inventory)
|
||||
{
|
||||
Inventory = inventory;
|
||||
}
|
||||
|
|
|
@ -10,7 +10,7 @@ namespace StardewModdingAPI.Events
|
|||
public static class PlayerEvents
|
||||
{
|
||||
public static event EventHandler<EventArgsFarmerChanged> FarmerChanged = delegate { };
|
||||
public static event EventHandler<EventArgsInventory> InventoryChanged = delegate { };
|
||||
public static event EventHandler<EventArgsInventoryChanged> InventoryChanged = delegate { };
|
||||
|
||||
public static void InvokeFarmerChanged(Farmer priorFarmer, Farmer newFarmer)
|
||||
{
|
||||
|
@ -19,7 +19,7 @@ namespace StardewModdingAPI.Events
|
|||
|
||||
public static void InvokeInventoryChanged(List<Item> inventory)
|
||||
{
|
||||
FarmerChanged.Invoke(null, new InventoryChanged(inventory));
|
||||
InventoryChanged.Invoke(null, new EventArgsInventoryChanged(inventory));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue