summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authordaniel0916 <theschokolps@gmail.com>2014-01-24 21:53:27 +0100
committerdaniel0916 <theschokolps@gmail.com>2014-01-24 21:53:27 +0100
commit5609fed3602b4da3c22ca042819561c2b9b21715 (patch)
tree97eccd08fe1d198ef1d23850b1dcd88423f2fbf2 /src
parentSome updates for enchanting (diff)
downloadcuberite-5609fed3602b4da3c22ca042819561c2b9b21715.tar
cuberite-5609fed3602b4da3c22ca042819561c2b9b21715.tar.gz
cuberite-5609fed3602b4da3c22ca042819561c2b9b21715.tar.bz2
cuberite-5609fed3602b4da3c22ca042819561c2b9b21715.tar.lz
cuberite-5609fed3602b4da3c22ca042819561c2b9b21715.tar.xz
cuberite-5609fed3602b4da3c22ca042819561c2b9b21715.tar.zst
cuberite-5609fed3602b4da3c22ca042819561c2b9b21715.zip
Diffstat (limited to '')
-rw-r--r--src/Entities/Player.cpp4
-rw-r--r--src/Protocol/Protocol17x.cpp2
2 files changed, 1 insertions, 5 deletions
diff --git a/src/Entities/Player.cpp b/src/Entities/Player.cpp
index abdd792e0..c1f2456eb 100644
--- a/src/Entities/Player.cpp
+++ b/src/Entities/Player.cpp
@@ -120,8 +120,6 @@ cPlayer::cPlayer(cClientHandle* a_Client, const AString & a_PlayerName)
cPlayer::~cPlayer(void)
{
- cRoot::Get()->GetPluginManager()->CallHookPlayerDestroying(*this);
-
LOGD("Deleting cPlayer \"%s\" at %p, ID %d", m_PlayerName.c_str(), this, GetUniqueID());
// Notify the server that the player is being destroyed
@@ -136,8 +134,6 @@ cPlayer::~cPlayer(void)
delete m_InventoryWindow;
LOGD("Player %p deleted", this);
-
- cRoot::Get()->GetPluginManager()->CallHookPlayerDestroyed(*this);
}
diff --git a/src/Protocol/Protocol17x.cpp b/src/Protocol/Protocol17x.cpp
index f302da2ad..949498734 100644
--- a/src/Protocol/Protocol17x.cpp
+++ b/src/Protocol/Protocol17x.cpp
@@ -1563,7 +1563,7 @@ void cProtocol172::HandlePacketEnchanting(cByteBuffer & a_ByteBuffer)
m_Client->GetPlayer()->GetWindow()->SetSlot(*m_Client->GetPlayer(), 0, EnchantItem);
LOGWARN("Item enchanted!");
-
+
}