From 775781506d55e0bd592e5996bc3a40e9ef68ce20 Mon Sep 17 00:00:00 2001 From: Abdulmujeeb Raji Date: Wed, 13 Nov 2024 12:19:09 +0000 Subject: [PATCH] fix: change coal from moditem to globalitem (bscly replace default useless coal) --- Content/Items/Materials/Coal.cs | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/Content/Items/Materials/Coal.cs b/Content/Items/Materials/Coal.cs index 24765be..7aeac11 100644 --- a/Content/Items/Materials/Coal.cs +++ b/Content/Items/Materials/Coal.cs @@ -4,15 +4,16 @@ using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; +using Terraria; using Terraria.ModLoader; namespace continuity.Content.Items.Materials { - public class Coal : ModItem + public class Coal : GlobalItem { - public override void SetDefaults() + public override void SetDefaults(Item entity) { - Item.DefaultToPlaceableTile(ModContent.TileType()); + entity.DefaultToPlaceableTile(ModContent.TileType()); } } }