Skip to content

Commit

Permalink
reimplement ExampleBlock.ChangeWaterfallStyle (tModLoader#3244)
Browse files Browse the repository at this point in the history
  • Loading branch information
direwolf420 authored Feb 13, 2023
1 parent facca88 commit 6873640
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions ExampleMod/Content/Tiles/ExampleBlock.cs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
using ExampleMod.Content.Biomes;
using ExampleMod.Content.Dusts;
using Microsoft.Xna.Framework;
using Terraria;
Expand All @@ -22,9 +23,8 @@ public override void NumDust(int i, int j, bool fail, ref int num) {
num = fail ? 1 : 3;
}

// todo: implement
// public override void ChangeWaterfallStyle(ref int style) {
// style = mod.GetWaterfallStyleSlot("ExampleWaterfallStyle");
// }
public override void ChangeWaterfallStyle(ref int style) {
style = ModContent.GetInstance<ExampleWaterfallStyle>().Slot;
}
}
}

0 comments on commit 6873640

Please sign in to comment.