Skip to content

Commit

Permalink
remove pawn comp player connect event priority
Browse files Browse the repository at this point in the history
Because now there are issues with Objects components sending
CreateObject RPCs on connect sooner than Pawn calling RemoveBuildingForPlayer
This way, created objects are again removed with game mechanis after
receiving RemoveBuildingForPlayer
  • Loading branch information
AmyrAhmady committed Oct 7, 2023
1 parent b3fb252 commit 40a8127
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Server/Components/Pawn/Scripting/Impl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ void Scripting::addEvents() const
if (mgr->players)
{
mgr->players->getPlayerSpawnDispatcher().addEventHandler(PlayerEvents::Get());
mgr->players->getPlayerConnectDispatcher().addEventHandler(PlayerEvents::Get(), EventPriority_FairlyLow);
mgr->players->getPlayerConnectDispatcher().addEventHandler(PlayerEvents::Get());
mgr->players->getPlayerStreamDispatcher().addEventHandler(PlayerEvents::Get());
mgr->players->getPlayerTextDispatcher().addEventHandler(PlayerEvents::Get());
mgr->players->getPlayerShotDispatcher().addEventHandler(PlayerEvents::Get());
Expand Down

0 comments on commit 40a8127

Please sign in to comment.