Terraria.Liquid.StartPanic C# (CSharp) Method

StartPanic() public static method

public static StartPanic ( ) : void
return void
        public static void StartPanic()
        {
            if (Liquid.panicMode)
                return;
            WorldGen.waterLine = Main.maxTilesY;
            Liquid.numLiquid = 0;
            LiquidBuffer.numLiquidBuffer = 0;
            Liquid.panicCounter = 0;
            Liquid.panicMode = true;
            Liquid.panicY = Main.maxTilesY - 3;
            if (!Main.dedServ)
                return;
            Console.WriteLine("Forcing water to settle.");
        }