summaryrefslogtreecommitdiffstats
path: root/src/Items/ItemFishingRod.h
diff options
context:
space:
mode:
authorSTRWarrior <niels.breuker@hotmail.nl>2013-12-30 22:56:08 +0100
committerSTRWarrior <niels.breuker@hotmail.nl>2013-12-30 22:56:08 +0100
commitcd435ffca970f954d2ade1e81c7c4ae7df75907e (patch)
tree76dd51fc9c073abcc96b7a4ce3d998438f137bba /src/Items/ItemFishingRod.h
parentFixed compilation in VC2008. (diff)
downloadcuberite-cd435ffca970f954d2ade1e81c7c4ae7df75907e.tar
cuberite-cd435ffca970f954d2ade1e81c7c4ae7df75907e.tar.gz
cuberite-cd435ffca970f954d2ade1e81c7c4ae7df75907e.tar.bz2
cuberite-cd435ffca970f954d2ade1e81c7c4ae7df75907e.tar.lz
cuberite-cd435ffca970f954d2ade1e81c7c4ae7df75907e.tar.xz
cuberite-cd435ffca970f954d2ade1e81c7c4ae7df75907e.tar.zst
cuberite-cd435ffca970f954d2ade1e81c7c4ae7df75907e.zip
Diffstat (limited to '')
-rw-r--r--src/Items/ItemFishingRod.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/Items/ItemFishingRod.h b/src/Items/ItemFishingRod.h
index 941ce3b71..b2eaee63a 100644
--- a/src/Items/ItemFishingRod.h
+++ b/src/Items/ItemFishingRod.h
@@ -9,9 +9,11 @@
#pragma once
+#include "../Bindings/PluginManager.h"
#include "../Entities/Floater.h"
#include "../Entities/Entity.h"
#include "../Item.h"
+#include "../Root.h"
@@ -210,10 +212,14 @@ public:
}
}
-
+ if (cRoot::Get()->GetPluginManager()->CallHookPlayerFishing(*a_Player, Drops))
+ {
+ return true;
+ }
Vector3d FloaterPos = FloaterInfo.GetPos();
Vector3d FlyDirection = a_Player->GetEyePosition() - FloaterPos;
a_World->SpawnItemPickups(Drops, FloaterPos.x, FloaterPos.y, FloaterPos.z, FlyDirection.x, FlyDirection.y + 1, FlyDirection.z);
+ cRoot::Get()->GetPluginManager()->CallHookPlayerFished(*a_Player, Drops);
}
}
else