Terraria.Chest.ServerPlaceItem C# (CSharp) Method

ServerPlaceItem() public static method

public static ServerPlaceItem ( int plr, int slot ) : void
plr int
slot int
return void
        public static void ServerPlaceItem(int plr, int slot)
        {
            Main.player[plr].inventory[slot] = PutItemInNearbyChest(Main.player[plr].inventory[slot], Main.player[plr].Center);
            NetMessage.SendData(5, -1, -1, "", plr, slot, Main.player[plr].inventory[slot].prefix, 0.0f, 0, 0, 0);
        }