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

◆ WouldTileReplacementBeBlockedByLiquid()

static bool Terraria.WorldGen.WouldTileReplacementBeBlockedByLiquid ( int x,
int y,
int liquidType )
inlinestatic

Definition at line 56935 of file WorldGen.cs.

56936 {
56937 if ((Main.tile[x - 1, y].liquid <= 0 || Main.tile[x - 1, y].liquidType() != liquidType) && (Main.tile[x + 1, y].liquid <= 0 || Main.tile[x + 1, y].liquidType() != liquidType))
56938 {
56939 if (Main.tile[x, y - 1].liquid > 0)
56940 {
56941 return Main.tile[x, y - 1].liquidType() == liquidType;
56942 }
56943 return false;
56944 }
56945 return true;
56946 }

References Terraria.Main.tile.

Referenced by Terraria.Player.PlaceThing_ValidTileForReplacement().

+ Here is the caller graph for this function: