CinderBlossomGrass now drops seed properly

This commit is contained in:
Flowaria committed 2024-09-22 14:28:08 +09:00
1 parent e71329c8d5
commit be5de4582c
1 file changed
+2 -2
+2 -2
View File
@@ -60,9 +60,9 @@ namespace CalamityMod.Tiles.Crags
height = 48;
}
public override void KillMultiTile(int i, int j, int frameX, int frameY)
public override void KillTile(int i, int j, ref bool fail, ref bool effectOnly, ref bool noItem)
{
if (Main.rand.NextBool(20))
if (Main.netMode != NetmodeID.MultiplayerClient && Main.rand.NextBool(20))
{
Item.NewItem(new EntitySource_TileBreak(i, j), new Vector2(i, j) * 16f, ModContent.ItemType<Items.Placeables.CinderBlossomSeeds>());
}