Ignore:
Timestamp:
Jun 21, 2024, 2:58:18 PM (5 months ago)
Author:
alloc
Message:

27_32_48

  • V1.0 compatibility
File:
1 edited

Legend:

Unmodified
Added
Removed
  • binary-improvements/7dtd-server-fixes/src/API.cs

    r455 r488  
    4747
    4848                private static void PlayerSpawned (ClientInfo _cInfo, RespawnType _respawnReason, Vector3i _spawnPos) {
     49                        if (_cInfo == null) {
     50                                return;
     51                        }
     52                       
    4953                        PersistentContainer.Instance.Players.GetOrCreate (_cInfo.InternalId, _cInfo.PlatformId, _cInfo.CrossplatformId).SetOnline (_cInfo);
    5054                        PersistentContainer.Instance.Save ();
     
    5458
    5559                private static bool ChatMessage (ClientInfo _cInfo, EChatType _type, int _senderId, string _msg, string _mainName,
    56                         bool _localizeMain, List<int> _recipientEntityIds) {
     60                        List<int> _recipientEntityIds) {
    5761                        if (string.IsNullOrEmpty (_msg) || !_msg.EqualsCaseInsensitive ("/alloc")) {
    5862                                return true;
     
    6165                        if (_cInfo != null) {
    6266                                Log.Out ($"Sent chat hook reply to {_cInfo.InternalId}");
    63                                 _cInfo.SendPackage (NetPackageManager.GetPackage<NetPackageChat> ().Setup (EChatType.Whisper, -1, ANSWER, "", false, null));
     67                                _cInfo.SendPackage (NetPackageManager.GetPackage<NetPackageChat> ().Setup (EChatType.Whisper, -1, ANSWER, "", null));
    6468                        } else {
    6569                                Log.Error ($"ChatHookExample: Argument _cInfo null on message: {_msg}");
Note: See TracChangeset for help on using the changeset viewer.