From 3dc522dbc583e0b40bdb0ca3690643c07ac73239 Mon Sep 17 00:00:00 2001 From: Abdulmujeeb Raji Date: Wed, 13 Nov 2024 12:46:46 +0000 Subject: [PATCH] =?UTF-8?q?fix:=20coal=20now=20doesn't=20replace=20every?= =?UTF-8?q?=20placeable=20block=20in=20the=20game=20=F0=9F=A4=A6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- 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 7aeac11..8d39be7 100644 --- a/Content/Items/Materials/Coal.cs +++ b/Content/Items/Materials/Coal.cs @@ -2,6 +2,7 @@ using System; using System.Collections.Generic; using System.Linq; +using System.Net.Http.Headers; using System.Text; using System.Threading.Tasks; using Terraria; @@ -9,11 +10,11 @@ using Terraria.ModLoader; namespace continuity.Content.Items.Materials { - public class Coal : GlobalItem + public class Coal : ModItem { - public override void SetDefaults(Item entity) + public override void SetDefaults() { - entity.DefaultToPlaceableTile(ModContent.TileType()); + Item.DefaultToPlaceableTile(ModContent.TileType()); } } }