Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ LiquidPlace() [1/2]

static bool Terraria.ObjectData.TileObjectData.LiquidPlace ( int type,
Tile checkTile )
inlinestatic

Definition at line 4304 of file TileObjectData.cs.

4305 {
4306 if (checkTile == null)
4307 {
4308 return false;
4309 }
4310 if (checkTile.liquid > 0)
4311 {
4312 switch (checkTile.liquidType())
4313 {
4314 case 1:
4315 if (Main.tileLavaDeath[type])
4316 {
4317 return false;
4318 }
4319 break;
4320 case 0:
4321 case 2:
4322 case 3:
4323 if (Main.tileWaterDeath[type])
4324 {
4325 return false;
4326 }
4327 break;
4328 }
4329 }
4330 return true;
4331 }

References Terraria.Main.tileLavaDeath, Terraria.Main.tileWaterDeath, and System.type.