Terraria.TargetDummy.Deactivate C# (CSharp) Method

Deactivate() public method

public Deactivate ( ) : void
return void
        public void Deactivate()
        {
            if (this.npc != -1)
                Main.npc[this.npc].active = false;
            this.npc = -1;
            if (Main.netMode == 1)
                return;
            NetMessage.SendData(86, -1, -1, "", this.whoAmI, (float)this.x, (float)this.y, 0.0f, 0, 0, 0);
        }