Skip to content

Commit

Permalink
Fix ExampleFoodItem using ConsumeItem rather than OnConsumeItem
Browse files Browse the repository at this point in the history
  • Loading branch information
Chicken-Bones committed Jun 29, 2022
1 parent 35e8da4 commit 52f0a0a
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions ExampleMod/Content/Items/Consumables/ExampleFoodItem.cs
Original file line number Diff line number Diff line change
Expand Up @@ -55,9 +55,8 @@ public override void SetDefaults() {

// If you want multiple buffs, you can apply the remainder of buffs with this method.
// Make sure the primary buff is set in SetDefaults so that the QuickBuff hotkey can work properly.
public override bool ConsumeItem(Player player) {
public override void OnConsumeItem(Player player) {
player.AddBuff(BuffID.SugarRush, 3600);
return true;
}

//Please see Content/ExampleRecipes.cs for a detailed explanation of recipe creation.
Expand Down

0 comments on commit 52f0a0a

Please sign in to comment.