diff options
author | Hax52 <jay.bourgeois7@gmail.com> | 2015-06-23 04:00:15 +0200 |
---|---|---|
committer | hax52 <jay.bourgeois7@gmail.com> | 2015-06-24 20:52:56 +0200 |
commit | 9f1d1c058fa5fe415a264be710d774dc37e12f5e (patch) | |
tree | 45298832af28e55e24239e3821ca72730440ecd8 /src/Blocks/BlockPiston.cpp | |
parent | Merge pull request #2274 from cuberite/ItemsRemovalFix (diff) | |
download | cuberite-9f1d1c058fa5fe415a264be710d774dc37e12f5e.tar cuberite-9f1d1c058fa5fe415a264be710d774dc37e12f5e.tar.gz cuberite-9f1d1c058fa5fe415a264be710d774dc37e12f5e.tar.bz2 cuberite-9f1d1c058fa5fe415a264be710d774dc37e12f5e.tar.lz cuberite-9f1d1c058fa5fe415a264be710d774dc37e12f5e.tar.xz cuberite-9f1d1c058fa5fe415a264be710d774dc37e12f5e.tar.zst cuberite-9f1d1c058fa5fe415a264be710d774dc37e12f5e.zip |
Diffstat (limited to '')
-rw-r--r-- | src/Blocks/BlockPiston.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/Blocks/BlockPiston.cpp b/src/Blocks/BlockPiston.cpp index d9f4913d8..75f8621a7 100644 --- a/src/Blocks/BlockPiston.cpp +++ b/src/Blocks/BlockPiston.cpp @@ -179,7 +179,7 @@ void cBlockPistonHandler::ExtendPiston(int a_BlockX, int a_BlockY, int a_BlockZ, a_World->SetBlock(a_BlockX, a_BlockY, a_BlockZ, pistonBlock, pistonMeta | 0x8); a_World->SetBlock(extx, exty, extz, E_BLOCK_PISTON_EXTENSION, pistonMeta | (IsSticky(pistonBlock) ? 8 : 0), false); - a_World->ScheduleTask(PISTON_TICK_DELAY, std::make_shared<cWorld::cTaskSendBlockToAllPlayers>(ScheduledBlocks)); + a_World->ScheduleTask(PISTON_TICK_DELAY, static_cast<cWorld::cTaskPtr>(std::make_shared<cWorld::cTaskSendBlockToAllPlayers>(ScheduledBlocks))); } @@ -229,7 +229,7 @@ void cBlockPistonHandler::RetractPiston(int a_BlockX, int a_BlockY, int a_BlockZ std::vector<Vector3i> ScheduledBlocks; ScheduledBlocks.push_back(Vector3i(a_BlockX, a_BlockY, a_BlockZ)); ScheduledBlocks.push_back(Vector3i(tempx, tempy, tempz)); - a_World->ScheduleTask(PISTON_TICK_DELAY + 1, std::make_shared<cWorld::cTaskSendBlockToAllPlayers>(ScheduledBlocks)); + a_World->ScheduleTask(PISTON_TICK_DELAY + 1, static_cast<cWorld::cTaskPtr>(std::make_shared<cWorld::cTaskSendBlockToAllPlayers>(ScheduledBlocks))); return; } } @@ -239,7 +239,7 @@ void cBlockPistonHandler::RetractPiston(int a_BlockX, int a_BlockY, int a_BlockZ std::vector<Vector3i> ScheduledBlocks; ScheduledBlocks.push_back(Vector3i(a_BlockX, a_BlockY, a_BlockZ)); - a_World->ScheduleTask(PISTON_TICK_DELAY + 1, std::make_shared<cWorld::cTaskSendBlockToAllPlayers>(ScheduledBlocks)); + a_World->ScheduleTask(PISTON_TICK_DELAY + 1, static_cast<cWorld::cTaskPtr>(std::make_shared<cWorld::cTaskSendBlockToAllPlayers>(ScheduledBlocks))); } |