public override void SendClientChanges(ModPlayer clientPlayer) { OraclePlayer clone = clientPlayer as OraclePlayer; if (clone.playerHasGottenBag != playerHasGottenBag) { var packet = mod.GetPacket(); packet.Write((byte)CalValEX.MessageType.PlayerBagChanged); packet.Write((byte)player.whoAmI); packet.Write(playerHasGottenBag); packet.Send(); } }
public override void clientClone(ModPlayer clientClone) { OraclePlayer clone = clientClone as OraclePlayer; clone.playerHasGottenBag = playerHasGottenBag; }