-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
34aad4c
commit f2154b2
Showing
16 changed files
with
299 additions
and
937 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,13 @@ | ||
{ | ||
"name": "FuckNetherHeight", | ||
"entry": "FuckNetherHeight.dll", | ||
"name": "${modName}", | ||
"entry": "${modFile}", | ||
"type": "native", | ||
"version": "0.13.5" | ||
"version": "${modVersion}", | ||
"description": "Fuck Vanilla Bedrock Edition Nether Height Limit", | ||
"author": "GroupMountain", | ||
"dependencies": [ | ||
{ | ||
"name": "GMLIB" | ||
} | ||
] | ||
} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
#include "Global.h" | ||
|
||
namespace FuckNetherHeight { | ||
|
||
std::unique_ptr<Entry>& Entry::getInstance() { | ||
static std::unique_ptr<Entry> instance; | ||
return instance; | ||
} | ||
|
||
bool Entry::load() { | ||
if (ll::getServerStatus() != ll::ServerStatus::Starting) { | ||
logger.error("FuckNetherHeight must be loaded at startup!"); | ||
return false; | ||
} | ||
enableMod(); | ||
return true; | ||
} | ||
|
||
bool Entry::enable() { | ||
logger.info("FuckNetherHeight Loaded!"); | ||
logger.info("Author: GroupMountain"); | ||
logger.info("Repository: https://github.com/GroupMountain/FuckNetherHeight"); | ||
return true; | ||
} | ||
|
||
bool Entry::disable() { | ||
disableMod(); | ||
return true; | ||
} | ||
|
||
} // namespace FuckNetherHeight | ||
|
||
LL_REGISTER_MOD(FuckNetherHeight::Entry, FuckNetherHeight::Entry::getInstance()); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
#include <span> // temporarily fix the workflows build | ||
|
||
#include <ll/api/mod/NativeMod.h> | ||
#include <ll/api/mod/RegisterHelper.h> | ||
|
||
namespace FuckNetherHeight { | ||
|
||
class Entry { | ||
|
||
public: | ||
static std::unique_ptr<Entry>& getInstance(); | ||
|
||
Entry(ll::mod::NativeMod& self) : mSelf(self) {} | ||
|
||
[[nodiscard]] ll::mod::NativeMod& getSelf() const { return mSelf; } | ||
|
||
bool load(); | ||
|
||
bool enable(); | ||
|
||
bool disable(); | ||
|
||
private: | ||
ll::mod::NativeMod& mSelf; | ||
}; | ||
|
||
} // namespace FuckNetherHeight |
Oops, something went wrong.