summaryrefslogtreecommitdiffstats
path: root/src/Items/ItemBucket.h
diff options
context:
space:
mode:
authorMattes D <github@xoft.cz>2014-02-02 16:25:30 +0100
committerMattes D <github@xoft.cz>2014-02-02 16:25:30 +0100
commit3cfd9ce269f695e27c9f62cbd95b7a3b60963581 (patch)
treeca1faaae5c7d0fbd756f4cee56f61500ba0a12ed /src/Items/ItemBucket.h
parentFixed #620 (diff)
parentAdded missing files (diff)
downloadcuberite-3cfd9ce269f695e27c9f62cbd95b7a3b60963581.tar
cuberite-3cfd9ce269f695e27c9f62cbd95b7a3b60963581.tar.gz
cuberite-3cfd9ce269f695e27c9f62cbd95b7a3b60963581.tar.bz2
cuberite-3cfd9ce269f695e27c9f62cbd95b7a3b60963581.tar.lz
cuberite-3cfd9ce269f695e27c9f62cbd95b7a3b60963581.tar.xz
cuberite-3cfd9ce269f695e27c9f62cbd95b7a3b60963581.tar.zst
cuberite-3cfd9ce269f695e27c9f62cbd95b7a3b60963581.zip
Diffstat (limited to 'src/Items/ItemBucket.h')
-rw-r--r--src/Items/ItemBucket.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/Items/ItemBucket.h b/src/Items/ItemBucket.h
index c9a632580..f18a4d959 100644
--- a/src/Items/ItemBucket.h
+++ b/src/Items/ItemBucket.h
@@ -6,6 +6,7 @@
#include "../Simulator/FluidSimulator.h"
#include "../Blocks/BlockHandler.h"
#include "../LineBlockTracer.h"
+#include "../BlockInServerPluginInterface.h"
@@ -142,7 +143,9 @@ public:
cBlockHandler * Handler = BlockHandler(CurrentBlock);
if (Handler->DoesDropOnUnsuitable())
{
- Handler->DropBlock(a_World, a_Player, a_BlockX, a_BlockY, a_BlockZ);
+ cChunkInterface ChunkInterface(a_World->GetChunkMap());
+ cBlockInServerPluginInterface PluginInterface(*a_World);
+ Handler->DropBlock(ChunkInterface, *a_World, PluginInterface, a_Player, a_BlockX, a_BlockY, a_BlockZ);
}
}