feat: remove experience
This commit is contained in:
1 parent
bdfe5350cd
commit
41d166afed
83 files changed
+47
-1501
No files matched your search
@@ -190,12 +190,6 @@ void ServerPlayer::addAdditonalSaveData(CompoundTag *entityTag)
|
||||
//entityTag->putInt(L"playerGameType", gameMode->getGameModeForPlayer()->getId());
|
||||
}
|
||||
|
||||
void ServerPlayer::withdrawExperienceLevels(int amount)
|
||||
{
|
||||
Player::withdrawExperienceLevels(amount);
|
||||
lastSentExp = -1;
|
||||
}
|
||||
|
||||
void ServerPlayer::initMenu()
|
||||
{
|
||||
containerMenu->addSlotListener(this);
|
||||
@@ -546,13 +540,6 @@ void ServerPlayer::doTickB(bool ignorePortal)
|
||||
lastSentFood = foodData.getFoodLevel();
|
||||
lastFoodSaturationZero = foodData.getSaturationLevel() == 0;
|
||||
}
|
||||
|
||||
if (totalExperience != lastSentExp)
|
||||
{
|
||||
lastSentExp = totalExperience;
|
||||
connection->send( shared_ptr<SetExperiencePacket>( new SetExperiencePacket(experienceProgress, totalExperience, experienceLevel) ) );
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
shared_ptr<ItemInstance> ServerPlayer::getCarried(int slot)
|
||||
@@ -760,10 +747,6 @@ void ServerPlayer::take(shared_ptr<Entity> e, int orgCount)
|
||||
{
|
||||
entityTracker->broadcast(e, shared_ptr<TakeItemEntityPacket>( new TakeItemEntityPacket(e->entityId, entityId) ) );
|
||||
}
|
||||
if (e->GetType() == eTYPE_EXPERIENCEORB)
|
||||
{
|
||||
entityTracker->broadcast(e, shared_ptr<TakeItemEntityPacket>( new TakeItemEntityPacket(e->entityId, entityId) ) );
|
||||
}
|
||||
}
|
||||
Player::take(e, orgCount);
|
||||
containerMenu->broadcastChanges();
|
||||
|
||||
Reference in new issue
Block a user