35284 {
35285 Tile tile = Main.tile[x, y];
35286 if (tile == null || !tile.active())
35287 {
35288 return false;
35289 }
35292 {
35293 default:
35294 return false;
35295 case 0:
35296 if (!tile.fullbrightBlock() && !tile.invisibleBlock())
35297 {
35298 return false;
35299 }
35300 tile.fullbrightBlock(fullbrightBlock:
false);
35301 tile.invisibleBlock(invisibleBlock:
false);
35303 break;
35304 case 1:
35305 if (tile.fullbrightBlock())
35306 {
35307 return false;
35308 }
35309 tile.fullbrightBlock(fullbrightBlock:
true);
35310 break;
35311 case 2:
35312 if (tile.invisibleBlock())
35313 {
35314 return false;
35315 }
35316 tile.invisibleBlock(invisibleBlock:
true);
35318 break;
35319 }
35320 if (broadcast)
35321 {
35322 NetMessage.SendData(63, -1, -1,
null, x, y, (
int)
paintCoatId, 1f);
35323 }
35325 return true;
35326 }
static void paintCoatEffect(int x, int y, byte paintCoatId, List< Color > oldColors)
static List< Color > coatingColors(Tile tile, bool block)
static void SquareTileFrame(int i, int j, bool resetFrame=true)