1
0

Additionally check if older clients send "collect" for type as that is not the harvest type either

This commit is contained in:
Emagi 2025-05-06 19:01:38 -04:00
parent 13e10b315d
commit 65f53f77b7

View File

@ -564,7 +564,7 @@ void GroundSpawn::HandleUse(Client* client, string type){
} }
MHarvestUse.lock(); MHarvestUse.lock();
if(type == "" && client->GetVersion() <= 561) if((type == "" || type == "collect") && client->GetVersion() <= 561)
type = GetHarvestSpellType(); type = GetHarvestSpellType();
if (type == GetHarvestSpellType() && MeetsSpawnAccessRequirements(client->GetPlayer())) { if (type == GetHarvestSpellType() && MeetsSpawnAccessRequirements(client->GetPlayer())) {