diff options
Diffstat (limited to 'src/World.cpp')
-rw-r--r-- | src/World.cpp | 25 |
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) : |