summaryrefslogtreecommitdiffstats
path: root/src/Piston.cpp
diff options
context:
space:
mode:
authorTycho <work.tycho+git@gmail.com>2014-02-02 15:49:37 +0100
committerTycho <work.tycho+git@gmail.com>2014-02-02 15:49:37 +0100
commitb82fc394dd2a40e12e3c13709fea26c2435792c9 (patch)
treea310eb96470c3651480c5899a36955f87800bee8 /src/Piston.cpp
parentChanged Signiture of OnDigging (diff)
downloadcuberite-b82fc394dd2a40e12e3c13709fea26c2435792c9.tar
cuberite-b82fc394dd2a40e12e3c13709fea26c2435792c9.tar.gz
cuberite-b82fc394dd2a40e12e3c13709fea26c2435792c9.tar.bz2
cuberite-b82fc394dd2a40e12e3c13709fea26c2435792c9.tar.lz
cuberite-b82fc394dd2a40e12e3c13709fea26c2435792c9.tar.xz
cuberite-b82fc394dd2a40e12e3c13709fea26c2435792c9.tar.zst
cuberite-b82fc394dd2a40e12e3c13709fea26c2435792c9.zip
Diffstat (limited to 'src/Piston.cpp')
-rw-r--r--src/Piston.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/Piston.cpp b/src/Piston.cpp
index 75eeb5e98..5eb14451d 100644
--- a/src/Piston.cpp
+++ b/src/Piston.cpp
@@ -9,6 +9,7 @@
#include "World.h"
#include "Server.h"
#include "Blocks/BlockHandler.h"
+#include "BlockInServerPluginInterface.h"
@@ -90,7 +91,9 @@ void cPiston::ExtendPiston(int pistx, int pisty, int pistz)
cBlockHandler * Handler = BlockHandler(currBlock);
if (Handler->DoesDropOnUnsuitable())
{
- Handler->DropBlock(m_World, NULL, pistx, pisty, pistz);
+ cChunkInterface ChunkInterface(m_World->GetChunkMap());
+ cBlockInServerPluginInterface PluginInterface(*m_World);
+ Handler->DropBlock(ChunkInterface, *m_World, PluginInterface, NULL, pistx, pisty, pistz);
}
}