diff options
author | Tycho <work.tycho+git@gmail.com> | 2014-02-02 15:49:37 +0100 |
---|---|---|
committer | Tycho <work.tycho+git@gmail.com> | 2014-02-02 15:49:37 +0100 |
commit | b82fc394dd2a40e12e3c13709fea26c2435792c9 (patch) | |
tree | a310eb96470c3651480c5899a36955f87800bee8 /src/Items/ItemBucket.h | |
parent | Changed Signiture of OnDigging (diff) | |
download | cuberite-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 '')
-rw-r--r-- | src/Items/ItemBucket.h | 5 |
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); } } |