diff options
author | admin@omencraft.com <admin@omencraft.com@0a769ca7-a7f5-676a-18bf-c427514a06d6> | 2011-11-09 23:17:30 +0100 |
---|---|---|
committer | admin@omencraft.com <admin@omencraft.com@0a769ca7-a7f5-676a-18bf-c427514a06d6> | 2011-11-09 23:17:30 +0100 |
commit | 18b75636806a6fb7be0692d0350f54be4fa75348 (patch) | |
tree | ce486f07ad284818afee6254b0e3ac0283b64428 /source/cClientHandle.cpp | |
parent | bugfix to redstone, it can climb walls again. (diff) | |
download | cuberite-18b75636806a6fb7be0692d0350f54be4fa75348.tar cuberite-18b75636806a6fb7be0692d0350f54be4fa75348.tar.gz cuberite-18b75636806a6fb7be0692d0350f54be4fa75348.tar.bz2 cuberite-18b75636806a6fb7be0692d0350f54be4fa75348.tar.lz cuberite-18b75636806a6fb7be0692d0350f54be4fa75348.tar.xz cuberite-18b75636806a6fb7be0692d0350f54be4fa75348.tar.zst cuberite-18b75636806a6fb7be0692d0350f54be4fa75348.zip |
Diffstat (limited to 'source/cClientHandle.cpp')
-rw-r--r-- | source/cClientHandle.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/source/cClientHandle.cpp b/source/cClientHandle.cpp index 2632d5ac6..4cc176db6 100644 --- a/source/cClientHandle.cpp +++ b/source/cClientHandle.cpp @@ -1078,6 +1078,8 @@ void cClientHandle::Tick(float a_Dt) World->LockEntities();
m_Player->SetGameMode ( World->GetGameMode() ); //set player's gamemode to server's gamemode at login.
+ m_Player->SetIP ( m_pState->Socket.GetIPString() );
+
cRoot::Get()->GetPluginManager()->CallHook( cPluginManager::E_PLUGIN_PLAYER_SPAWN, 1, m_Player );
// Return a server login packet
|