diff --git a/src/CompatibilityApi.cpp b/src/CompatibilityApi.cpp index 94dd3aa..c8b3fb4 100644 --- a/src/CompatibilityApi.cpp +++ b/src/CompatibilityApi.cpp @@ -1,4 +1,6 @@ #include "Global.h" +#include "mc/world/item/ItemStackBase.h" +#include "mc/world/item/enchanting/Enchant.h" #include bool isInteger(const std::string& str) { @@ -668,4 +670,7 @@ void Export_Compatibility_API() { RemoteCall::exportAs("GMLIB_API", "playerAttack", [](Player* player, Actor* entity) -> bool { return player->attack(*entity, ActorDamageCause::EntityAttack); }); + RemoteCall::exportAs("GMLIB_API", "playerPullInEntity", [](Player* player, Actor* entity) -> bool { + return player->pullInEntity(*entity); + }); } \ No newline at end of file