Definition at line 53151 of file WorldGen.cs.
53152 {
53153 if (Main.netMode == 1)
53154 {
53155 return false;
53156 }
53157 if (Main.tile[x, y] == null)
53158 {
53159 Main.tile[x, y] =
new Tile();
53160 }
53161 Tile tile = Main.tile[x, y];
53163 {
53164 int num = tile.frameX / 18;
53165 int y2 = y - tile.frameY / 18;
53166 while (num > 1)
53167 {
53168 num -= 2;
53169 }
53170 num = x - num;
53171 if (!Chest.DestroyChest(num,
y2))
53172 {
53173 return true;
53174 }
53175 }
53176 if (tile.type == 88)
53177 {
53178 int num2 = tile.frameX / 18;
53179 int y3 = y - tile.frameY / 18;
53182 if (!Chest.DestroyChest(
num2,
y3))
53183 {
53184 return true;
53185 }
53186 }
53187 if (tile.type == 470)
53188 {
53190 }
53191 if (tile.type == 475)
53192 {
53194 }
53195 return false;
53196 }
static bool IsBreakable(int clickX, int clickY)
static bool IsBreakable(int clickX, int clickY)
References Terraria.ID.TileID.Sets.BasicChest, Terraria.Chest.DestroyChest(), Terraria.GameContent.Tile_Entities.TEDisplayDoll.IsBreakable(), Terraria.GameContent.Tile_Entities.TEHatRack.IsBreakable(), Terraria.Main.netMode, Terraria.DataStructures.Tile, Terraria.Main.tile, and Terraria.Tile.type.
Referenced by Terraria.GameContent.MinecartDiggerHelper.CanGetPastTile(), and Terraria.MessageBuffer.GetData().