mirror of
https://github.com/Milxnor/Project-Reboot-3.0.git
synced 2026-01-13 10:52:22 +01:00
Some Event Fixes, 18.10 Crash fix, random crash after a few minutes for s17+
This commit is contained in:
@@ -159,7 +159,20 @@ APawn* AGameModeBase::SpawnDefaultPawnForHook(AGameModeBase* GameMode, AControll
|
||||
|
||||
auto& StartingItems = ((AFortGameModeAthena*)GameMode)->GetStartingItems();
|
||||
|
||||
NewPlayerAsAthena->AddPickaxeToInventory();
|
||||
if (Globals::bGoingToPlayEvent && Fortnite_Version >= 16.00)
|
||||
{
|
||||
auto WID = Cast<UFortWorldItemDefinition>(FindObject("WID_EventMode_Activator", nullptr, ANY_PACKAGE)); // Empty Hands
|
||||
|
||||
bool bShouldUpdate = false;
|
||||
WorldInventory->AddItem(WID, &bShouldUpdate, 1);
|
||||
|
||||
if (bShouldUpdate)
|
||||
WorldInventory->Update();
|
||||
}
|
||||
else
|
||||
{
|
||||
NewPlayerAsAthena->AddPickaxeToInventory();
|
||||
}
|
||||
|
||||
for (int i = 0; i < StartingItems.Num(); ++i)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user