summaryrefslogtreecommitdiffstats
path: root/src/World.cpp
diff options
context:
space:
mode:
authorTiger Wang <ziwei.tiger@hotmail.co.uk>2015-03-05 22:21:39 +0100
committerTiger Wang <ziwei.tiger@hotmail.co.uk>2015-03-05 22:21:39 +0100
commitf3da0cf1ae96048bb84a083099faec0b0a736bf1 (patch)
treec18dd3120d26e49e9c0634b87054a4fc14e6969b /src/World.cpp
parentHandle client 'leave bed' request (diff)
downloadcuberite-f3da0cf1ae96048bb84a083099faec0b0a736bf1.tar
cuberite-f3da0cf1ae96048bb84a083099faec0b0a736bf1.tar.gz
cuberite-f3da0cf1ae96048bb84a083099faec0b0a736bf1.tar.bz2
cuberite-f3da0cf1ae96048bb84a083099faec0b0a736bf1.tar.lz
cuberite-f3da0cf1ae96048bb84a083099faec0b0a736bf1.tar.xz
cuberite-f3da0cf1ae96048bb84a083099faec0b0a736bf1.tar.zst
cuberite-f3da0cf1ae96048bb84a083099faec0b0a736bf1.zip
Diffstat (limited to 'src/World.cpp')
-rw-r--r--src/World.cpp25
1 files changed, 0 insertions, 25 deletions
diff --git a/src/World.cpp b/src/World.cpp
index 0f3740877..e0e32c86b 100644
--- a/src/World.cpp
+++ b/src/World.cpp
@@ -47,7 +47,6 @@
#include "Generating/Trees.h"
#include "Bindings/PluginManager.h"
#include "Blocks/BlockHandler.h"
-#include "Blocks/BlockBed.cpp"
#include "Tracer.h"
@@ -3622,30 +3621,6 @@ void cWorld::cTaskSendBlockToAllPlayers::Run(cWorld & a_World)
////////////////////////////////////////////////////////////////////////////////
-// cWorld::cTaskSendBlockToAllPlayers
-
-cWorld::cTaskTryAwakeSleepingPlayers::cTaskTryAwakeSleepingPlayers(const Vector3i & a_Position, cChunkInterface & a_ChunkInterface) :
- m_Position(a_Position),
- m_ChunkInterface(a_ChunkInterface)
-{
-}
-
-void cWorld::cTaskTryAwakeSleepingPlayers::Run(cWorld & a_World)
-{
- cTimeFastForwardTester Tester;
- if (a_World.ForEachPlayer(Tester))
- {
- cPlayerBedStateUnsetter Unsetter(m_Position, m_ChunkInterface);
- a_World.ForEachPlayer(Unsetter);
- a_World.SetTimeOfDay(0);
- }
-}
-
-
-
-
-
-////////////////////////////////////////////////////////////////////////////////
// cWorld::cChunkGeneratorCallbacks:
cWorld::cChunkGeneratorCallbacks::cChunkGeneratorCallbacks(cWorld & a_World) :