mirror of
https://github.com/darksaid98/new-phone-who-dis.git
synced 2026-12-04 14:38:45 +00:00
fix(init): remove player/ui ready events
This commit is contained in:
1 parent
c5aaf32e5d
commit
f89ffc3060
4 files changed
+6
-23
No files matched your search
@@ -131,7 +131,7 @@ class _PlayerService {
|
||||
playerLogger.debug(newPlayer);
|
||||
|
||||
// Emit to client that player is ready
|
||||
emitNet(PhoneEvents.PLAYER_IS_READY, pSource, true);
|
||||
emitNet(PhoneEvents.ON_INIT, pSource);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -183,7 +183,7 @@ class _PlayerService {
|
||||
playerLogger.debug(player);
|
||||
|
||||
// Emit to client that player is ready
|
||||
emitNet(PhoneEvents.PLAYER_IS_READY, src, true);
|
||||
emitNet(PhoneEvents.ON_INIT, src);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -210,11 +210,6 @@ class _PlayerService {
|
||||
this.deletePlayerFromMaps(src);
|
||||
|
||||
playerLogger.info(`Unloaded NPWD Player, source: (${src})`);
|
||||
|
||||
// We emit PLAYER_IS_READY false if the player wasn't disconnected
|
||||
if (!playerDropped) {
|
||||
emitNet(PhoneEvents.PLAYER_IS_READY, src, false);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user