diff options
author | KrystilizeNevaDies <57762380+KrystilizeNevaDies@users.noreply.github.com> | 2020-09-21 17:31:45 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-09-21 17:31:45 +0200 |
commit | 23bca008317e125659d4b97f29cf13da81a7aecd (patch) | |
tree | cb48b0c62ca3254c0d8aeaf4485d773b17c2c515 /src/Bindings/PluginManager.cpp | |
parent | Trapdoor crash fix (#4890) (diff) | |
download | cuberite-23bca008317e125659d4b97f29cf13da81a7aecd.tar cuberite-23bca008317e125659d4b97f29cf13da81a7aecd.tar.gz cuberite-23bca008317e125659d4b97f29cf13da81a7aecd.tar.bz2 cuberite-23bca008317e125659d4b97f29cf13da81a7aecd.tar.lz cuberite-23bca008317e125659d4b97f29cf13da81a7aecd.tar.xz cuberite-23bca008317e125659d4b97f29cf13da81a7aecd.tar.zst cuberite-23bca008317e125659d4b97f29cf13da81a7aecd.zip |
Diffstat (limited to 'src/Bindings/PluginManager.cpp')
-rw-r--r-- | src/Bindings/PluginManager.cpp | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/Bindings/PluginManager.cpp b/src/Bindings/PluginManager.cpp index 88bc82172..6593097dd 100644 --- a/src/Bindings/PluginManager.cpp +++ b/src/Bindings/PluginManager.cpp @@ -613,6 +613,19 @@ bool cPluginManager::CallHookHopperPushingItem(cWorld & a_World, cHopperEntity & +bool cPluginManager::CallHookDropSpense(cWorld & a_World, cDropSpenserEntity & a_DropSpenser, int a_SlotNum) +{ + return GenericCallHook(HOOK_DROPSPENSE, [&](cPlugin * a_Plugin) + { + return a_Plugin->OnDropSpense(a_World, a_DropSpenser, a_SlotNum); + } + ); +} + + + + + bool cPluginManager::CallHookKilled(cEntity & a_Victim, TakeDamageInfo & a_TDI, AString & a_DeathMessage) { return GenericCallHook(HOOK_KILLED, [&](cPlugin * a_Plugin) |