This commit is contained in:
vis2k 2022-01-06 12:27:37 +08:00
parent 90ee471bb8
commit 8d00436a8d

View File

@ -117,14 +117,14 @@ internal static void RegisterSystemHandlers(bool hostMode)
{
RegisterHandler<ObjectDestroyMessage>(OnHostClientObjectDestroy);
RegisterHandler<ObjectHideMessage>(OnHostClientObjectHide);
RegisterHandler<NetworkPongMessage>(msg => {}, false);
RegisterHandler<NetworkPongMessage>(_ => {}, false);
RegisterHandler<SpawnMessage>(OnHostClientSpawn);
// host mode doesn't need spawning
RegisterHandler<ObjectSpawnStartedMessage>(msg => {});
RegisterHandler<ObjectSpawnStartedMessage>(_ => {});
// host mode doesn't need spawning
RegisterHandler<ObjectSpawnFinishedMessage>(msg => {});
RegisterHandler<ObjectSpawnFinishedMessage>(_ => {});
// host mode doesn't need state updates
RegisterHandler<EntityStateMessage>(msg => {});
RegisterHandler<EntityStateMessage>(_ => {});
}
else
{