summaryrefslogtreecommitdiffstats
path: root/src/Protocol
diff options
context:
space:
mode:
authorandrew <xdotftw@gmail.com>2014-05-12 16:05:09 +0200
committerandrew <xdotftw@gmail.com>2014-05-12 16:05:09 +0200
commitb3d2b5b2c94193fd9364b26293b7d96b748ff96d (patch)
tree215519ba96caea0269641209452661b8bd6e14da /src/Protocol
parentFixed compilation (diff)
downloadcuberite-b3d2b5b2c94193fd9364b26293b7d96b748ff96d.tar
cuberite-b3d2b5b2c94193fd9364b26293b7d96b748ff96d.tar.gz
cuberite-b3d2b5b2c94193fd9364b26293b7d96b748ff96d.tar.bz2
cuberite-b3d2b5b2c94193fd9364b26293b7d96b748ff96d.tar.lz
cuberite-b3d2b5b2c94193fd9364b26293b7d96b748ff96d.tar.xz
cuberite-b3d2b5b2c94193fd9364b26293b7d96b748ff96d.tar.zst
cuberite-b3d2b5b2c94193fd9364b26293b7d96b748ff96d.zip
Diffstat (limited to '')
-rw-r--r--src/Protocol/Protocol17x.cpp6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/Protocol/Protocol17x.cpp b/src/Protocol/Protocol17x.cpp
index 3b21f7821..39feee16f 100644
--- a/src/Protocol/Protocol17x.cpp
+++ b/src/Protocol/Protocol17x.cpp
@@ -1879,11 +1879,7 @@ void cProtocol172::HandlePacketClientStatus(cByteBuffer & a_ByteBuffer)
case 2:
{
// Open Inventory achievement
- cStatManager & Manager = m_Client->GetPlayer()->GetStatManager();
- Manager.AddValue(achOpenInv);
-
- SendStatistics(Manager);
-
+ m_Client->GetPlayer()->AwardAchievement(achOpenInv);
break;
}
}