1012 {
1017 value = Utils.Clamp(value, 1, Main.maxTilesX - 1);
1024 {
1026 return true;
1027 }
1031 {
1033 {
1035 }
1037 {
1039 }
1040 }
1042 {
1044 }
1045 else
1046 {
1048 }
1053 {
1055 }
1062 try
1063 {
1064 do
1065 {
1067 {
1068 case 2:
1069 {
1073 for (
int j = 0;
j <
num5;
j++)
1074 {
1075 if (Main.tile[value,
value2 - 1] ==
null)
1076 {
1078 return false;
1079 }
1080 if (Main.tile[value,
value2 + 1] ==
null)
1081 {
1083 return false;
1084 }
1089 {
1091 {
1093 return true;
1094 }
1096 {
1098 return true;
1099 }
1100 if (!
tile6.inActive() &&
tile6.active() && Main.tileSolid[
tile6.type] && !Main.tileSolidTop[
tile6.type])
1101 {
1103 return true;
1104 }
1105 }
1107 {
1109 break;
1110 }
1114 {
1116 }
1117 }
1119 {
1121 }
1122 break;
1123 }
1124 case 1:
1125 {
1129 for (
int i = 0; i <
num4; i++)
1130 {
1131 if (Main.tile[value - 1,
value2] ==
null)
1132 {
1134 return false;
1135 }
1136 if (Main.tile[value + 1,
value2] ==
null)
1137 {
1139 return false;
1140 }
1145 {
1146 if (
ignoreX != -1 &&
num2 < 0 && !tile.inActive() && tile.active() && Main.tileSolid[tile.type] && !Main.tileSolidTop[tile.type])
1147 {
1149 return true;
1150 }
1152 {
1154 return true;
1155 }
1156 if (!
tile3.inActive() &&
tile3.active() && Main.tileSolid[
tile3.type] && !Main.tileSolidTop[
tile3.type])
1157 {
1159 return true;
1160 }
1161 }
1163 {
1165 break;
1166 }
1170 {
1172 }
1173 }
1175 {
1177 }
1178 break;
1179 }
1180 }
1181 if (Main.tile[value,
value2] ==
null)
1182 {
1184 return false;
1185 }
1188 {
1190 return true;
1191 }
1192 }
1195 return true;
1196 }
1197 catch
1198 {
1200 return false;
1201 }
1202 }