Skip to content
This repository has been archived by the owner on Jul 27, 2024. It is now read-only.

Commit

Permalink
chore: Adapted for Levilamina 0.13.4
Browse files Browse the repository at this point in the history
  • Loading branch information
engsr6982 committed Jul 24, 2024
1 parent 0166c14 commit f4018b8
Show file tree
Hide file tree
Showing 6 changed files with 19 additions and 14 deletions.
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,13 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [0.3.4] - 2024-7-24

### CHanged

- 适配 LeviLamina 0.13.4
- 优化部分代码

## [0.3.3] - 2024-7-18

### Chenged
Expand Down
1 change: 0 additions & 1 deletion src/chainminer3/Command.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
#include <ll/api/command/Optional.h>
#include <ll/api/command/Overload.h>
#include <ll/api/i18n/I18n.h>
#include <ll/api/plugin/NativePlugin.h>
#include <ll/api/service/Bedrock.h>
#include <ll/api/service/PlayerInfo.h>
#include <ll/api/service/Service.h>
Expand Down
5 changes: 2 additions & 3 deletions src/plugin/MyPlugin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@

#include <memory>

#include "ll/api/plugin/NativePlugin.h"
#include "ll/api/plugin/RegisterHelper.h"
#include "ll/api/mod/RegisterHelper.h"

// ChainMiner3
#include "chainminer3/Command.h"
Expand Down Expand Up @@ -49,4 +48,4 @@ bool MyPlugin::disable() {

} // namespace my_plugin

LL_REGISTER_PLUGIN(my_plugin::MyPlugin, my_plugin::instance);
LL_REGISTER_MOD(my_plugin::MyPlugin, my_plugin::instance);
8 changes: 4 additions & 4 deletions src/plugin/MyPlugin.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#pragma once

#include "ll/api/plugin/NativePlugin.h"
#include "ll/api/mod/NativeMod.h"

namespace my_plugin {

Expand All @@ -9,9 +9,9 @@ class MyPlugin {
public:
static MyPlugin& getInstance();

MyPlugin(ll::plugin::NativePlugin& self) : mSelf(self) {}
MyPlugin(ll::mod::NativeMod& self) : mSelf(self) {}

[[nodiscard]] ll::plugin::NativePlugin& getSelf() const { return mSelf; }
[[nodiscard]] ll::mod::NativeMod& getSelf() const { return mSelf; }

/// @return True if the plugin is loaded successfully.
bool load();
Expand All @@ -27,7 +27,7 @@ class MyPlugin {
// bool unload();

private:
ll::plugin::NativePlugin& mSelf;
ll::mod::NativeMod& mSelf;
};

} // namespace my_plugin
8 changes: 4 additions & 4 deletions tooth.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"format_version": 2,
"tooth": "github.com/engsr6982/ChainMiner3",
"version": "0.3.3",
"version": "0.3.4",
"info": {
"name": "ChainMiner3",
"description": "A plugin helps players to gather blocks quicker.",
Expand All @@ -12,10 +12,10 @@
"chainminer"
]
},
"asset_url": "https://github.com/engsr6982/ChainMiner3/releases/download/v0.3.3/ChainMiner3-windows-x64.zip",
"asset_url": "https://github.com/engsr6982/ChainMiner3/releases/download/v0.3.4/ChainMiner3-windows-x64.zip",
"prerequisites": {
"github.com/LiteLDev/LeviLamina": "0.13.x",
"github.com/LiteLDev/LegacyMoney": "0.8.x"
"github.com/LiteLDev/LeviLamina": "0.13.4",
"github.com/LiteLDev/LegacyMoney": "0.8.2"
},
"files": {
"place": [
Expand Down
4 changes: 2 additions & 2 deletions xmake.lua
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ add_repositories("liteldev-repo https://github.com/LiteLDev/xmake-repo.git")
-- add_requires("levilamina develop") to use develop version
-- please note that you should add bdslibrary yourself if using dev version
add_requires(
"levilamina 0.13.3",
"legacymoney 0.8.1",
"levilamina 0.13.4",
"legacymoney 0.8.2",
"rapidjson 1.1.0"
)

Expand Down

0 comments on commit f4018b8

Please sign in to comment.