fix: coal now doesn't replace every placeable block in the game 🤦

This commit is contained in:
Abdulmujeeb Raji 2024-11-13 12:46:46 +00:00
parent ae6f72c4c8
commit 3dc522dbc5
Signed by untrusted user: midnadimple
GPG key ID: EB02C582F8C3962B

View file

@ -2,6 +2,7 @@
using System; using System;
using System.Collections.Generic; using System.Collections.Generic;
using System.Linq; using System.Linq;
using System.Net.Http.Headers;
using System.Text; using System.Text;
using System.Threading.Tasks; using System.Threading.Tasks;
using Terraria; using Terraria;
@ -9,11 +10,11 @@ using Terraria.ModLoader;
namespace continuity.Content.Items.Materials 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<CoalTile>()); Item.DefaultToPlaceableTile(ModContent.TileType<CoalTile>());
} }
} }
} }