public static bool LiquidPlace(int type, Tile checkTile) { if (checkTile == null) return false; if ((int)checkTile.liquid > 0) { switch (checkTile.liquidType()) { case (byte)0: case (byte)2: if (Main.tileWaterDeath[type]) return false; break; case (byte)1: if (Main.tileLavaDeath[type]) return false; break; } } return true; }