This commit is contained in:
2023-06-27 23:41:30 +03:00
parent 6c441d9dee
commit 20662ae24d
14 changed files with 163 additions and 49 deletions
@@ -51,7 +51,7 @@ internal class EntityCreateHandler : Handler
return;
}
var hasAuthority = _playerCache.LocalPlayer.Id == player.Id;
var hasAuthority = _playerCache.Local.Id == player.Id;
var entity = _entityCache.OnCreate(attachId, entityType, 0, entityId, hasAuthority);
entity.Attach(_client, entityId, entityType, hasAuthority, player, payload);
}