1
0

chop added also to the type list since it seems to be hit or miss if the client is sending it

This commit is contained in:
Emagi 2025-05-06 19:09:36 -04:00
parent c57624079b
commit 0adc6f0e04

View File

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