mirror of
https://github.com/OpenFusionProject/OpenFusion.git
synced 2024-11-05 06:50:04 +00:00
Temporarily remove sanity check for egg pickup distance
This commit is contained in:
parent
12baece1b2
commit
0075457f81
@ -879,10 +879,12 @@ void NPCManager::eggPickup(CNSocket* sock, CNPacketData* data) {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* this has some issues with position desync, leaving it out for now
|
||||||
if (abs(egg->appearanceData.iX - plr->x)>500 || abs(egg->appearanceData.iY - plr->y) > 500) {
|
if (abs(egg->appearanceData.iX - plr->x)>500 || abs(egg->appearanceData.iY - plr->y) > 500) {
|
||||||
std::cout << "[WARN] Player tried to open an egg from the other chunk?!" << std::endl;
|
std::cout << "[WARN] Player tried to open an egg from the other chunk?!" << std::endl;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
*/
|
||||||
|
|
||||||
int typeId = egg->appearanceData.iNPCType;
|
int typeId = egg->appearanceData.iNPCType;
|
||||||
if (EggTypes.find(typeId) == EggTypes.end()) {
|
if (EggTypes.find(typeId) == EggTypes.end()) {
|
||||||
|
Loading…
Reference in New Issue
Block a user