Compare commits
2 Commits
+1
-1
Submodule SDK-GMLIB updated: ae86cc4327...cecc827900
@@ -105,10 +105,6 @@ class StaticFloatingText {
|
||||
this.mPlaceholderAPI = papi;
|
||||
this.mRuntimeId = GMLIB_API.createFloatingText(this.mPosition, this.mText, this.mPlaceholderAPI);
|
||||
FloatingTextList.push(this);
|
||||
this.sendToClients();
|
||||
mc.listen("onJoin", (pl) => {
|
||||
this.sendToClient(pl);
|
||||
});
|
||||
}
|
||||
|
||||
sendToClient(player) {
|
||||
|
||||
+1
-1
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"name": "${pluginName}",
|
||||
"entry": "${pluginFile}",
|
||||
"version": "0.10.1",
|
||||
"version": "0.11.0",
|
||||
"author": "GroupMountain",
|
||||
"type": "native",
|
||||
"dependencies": [
|
||||
|
||||
@@ -94,7 +94,7 @@ void Export_Compatibility_API() {
|
||||
"GMLIB_API",
|
||||
"createFloatingText",
|
||||
[](std::pair<Vec3, int> pos, std::string text, bool papi) -> int {
|
||||
auto ft = new GMLIB::Server::FloatingText(text, pos.first, pos.second, papi);
|
||||
auto ft = new GMLIB::Server::StaticFloatingText(text, pos.first, pos.second, papi);
|
||||
return ft->getRuntimeID();
|
||||
}
|
||||
);
|
||||
@@ -394,7 +394,7 @@ void Export_Compatibility_API() {
|
||||
auto auids = GMLIB_Scoreboard::getInstance()->getInstance()->getAllEntities();
|
||||
std::vector<std::string> result;
|
||||
for (auto auid : auids) {
|
||||
result.push_back(std::to_string(auid.get()));
|
||||
result.push_back(std::to_string(auid.id));
|
||||
}
|
||||
return result;
|
||||
});
|
||||
|
||||
@@ -174,6 +174,21 @@ void Export_Event_API() {
|
||||
);
|
||||
return true;
|
||||
}
|
||||
case doHash("onEndermanTake"): {
|
||||
auto Call = RemoteCall::importAs<bool(Actor * mob)>(eventName, eventId);
|
||||
eventBus->emplaceListener<GMLIB::Event::EntityEvent::EndermanTakeBlockBeforeEvent>(
|
||||
[Call](GMLIB::Event::EntityEvent::EndermanTakeBlockBeforeEvent& ev) {
|
||||
bool result = true;
|
||||
try {
|
||||
result = Call(&ev.self());
|
||||
} catch (...) {}
|
||||
if (!result) {
|
||||
ev.cancel();
|
||||
}
|
||||
}
|
||||
);
|
||||
return true;
|
||||
}
|
||||
default:
|
||||
return false;
|
||||
}
|
||||
|
||||
+1
-1
@@ -4,7 +4,7 @@
|
||||
#include <RemoteCallAPI.h>
|
||||
|
||||
#define PLUGIN_NAME "GMLIB-LRCA"
|
||||
#define LIB_VERSION GMLIB::Version(0, 10, 1)
|
||||
#define LIB_VERSION GMLIB::Version(0, 11, 0)
|
||||
|
||||
extern ll::Logger logger;
|
||||
|
||||
|
||||
+2
-2
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"format_version": 2,
|
||||
"tooth": "github.com/GroupMountain/GMLIB-LegacyRemoteCallApi",
|
||||
"version": "0.10.1",
|
||||
"version": "0.11.0",
|
||||
"info": {
|
||||
"name": "GMLIB-LegacyRemoteCallApi",
|
||||
"description": "Legacy RemoteCall API for GMLIB",
|
||||
@@ -14,7 +14,7 @@
|
||||
"library"
|
||||
]
|
||||
},
|
||||
"asset_url": "https://github.com/GroupMountain/GMLIB-LegacyRemoteCallApi/releases/download/v0.10.1/GMLIB-LegacyRemoteCallApi-windows-x64.zip",
|
||||
"asset_url": "https://github.com/GroupMountain/GMLIB-LegacyRemoteCallApi/releases/download/v0.11.0/GMLIB-LegacyRemoteCallApi-windows-x64.zip",
|
||||
"dependencies": {
|
||||
"github.com/GroupMountain/GMLIB": ">=0.10.0"
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user