adapt: adapt to GMLIB v0.12.1
This commit is contained in:
@@ -112,7 +112,7 @@ void Export_Compatibility_API() {
|
||||
RemoteCall::exportAs("GMLIB_API", "sendFloatingTextToPlayer", [](int id, Player* pl) -> bool {
|
||||
auto ft = GMLIB::Server::FloatingText::getFloatingText(id);
|
||||
if (ft) {
|
||||
ft->sendToClient(pl);
|
||||
ft->sendToClient(*pl);
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
@@ -128,7 +128,7 @@ void Export_Compatibility_API() {
|
||||
RemoteCall::exportAs("GMLIB_API", "removeFloatingTextFromPlayer", [](int id, Player* pl) -> bool {
|
||||
auto ft = GMLIB::Server::FloatingText::getFloatingText(id);
|
||||
if (ft) {
|
||||
ft->removeFromClient(pl);
|
||||
ft->removeFromClient(*pl);
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
@@ -144,7 +144,7 @@ void Export_Compatibility_API() {
|
||||
RemoteCall::exportAs("GMLIB_API", "updateClientFloatingTextData", [](int id, Player* pl) -> bool {
|
||||
auto ft = GMLIB::Server::FloatingText::getFloatingText(id);
|
||||
if (ft) {
|
||||
ft->updateClient(pl);
|
||||
ft->updateClient(*pl);
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
|
||||
+5
-1
@@ -17,7 +17,11 @@ bool LRCA::load() {
|
||||
ExportPAPI();
|
||||
Export_Event_API();
|
||||
logger.info("GMLIB-LegacyRemoteCallApi Loaded!");
|
||||
logger.info("Version: {}", LIB_VERSION.asString());
|
||||
logger.info(
|
||||
"Loaded Version: {} with {}",
|
||||
fmt::format(fg(fmt::color::pink), "GMLIB-" + GMLIB::Version::getLibVersionString()),
|
||||
fmt::format(fg(fmt::color::light_green), "GMLIB-LegacyRemoteCallApi-"+LIB_VERSION.asString())
|
||||
);
|
||||
logger.info("Author: GroupMountain");
|
||||
logger.info("Repository: https://github.com/GroupMountain/GMLIB-LegacyRemoteCallApi");
|
||||
return true;
|
||||
|
||||
+3
-2
@@ -3,8 +3,9 @@
|
||||
|
||||
#include <RemoteCallAPI.h>
|
||||
|
||||
#define PLUGIN_NAME "GMLIB-LRCA"
|
||||
#define LIB_VERSION GMLIB::Version(0, 12, 0)
|
||||
#define PLUGIN_NAME fmt::format(fg(fmt::color::light_green), "GMLIB-LRCA")
|
||||
|
||||
#define LIB_VERSION GMLIB::Version(0, 12, 1)
|
||||
|
||||
extern ll::Logger logger;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user