bricktea / iLand-Core

Powerful land plugin, based on LiteLoader.
GNU General Public License v3.0
31 stars 6 forks source link

LiteLoader BDS 2.6.2 shows that land command was already declared #38

Open HongyiMC opened 2 years ago

HongyiMC commented 2 years ago

15:51:52 ERROR [LiteLoader] C++ Uncaught Exception Detected! 15:51:52 ERROR [LiteLoader] There is already a command named land 15:51:52 ERROR [LiteLoader] [failed to get stacktrace] 15:51:52 ERROR [LiteLoader] 38;2;239;046;046mIn API: McClass::regConsoleCmd 15:51:52 ERROR [LiteLoader] 38;2;239;046;046mIn Plugin: iLand

moxisuki commented 2 years ago

15:51:52 ERROR [LiteLoader] C++ Uncaught Exception Detected! 15:51:52 ERROR [LiteLoader] There is already a command named land 15:51:52 ERROR [LiteLoader] [failed to get stacktrace] 15:51:52 ERROR [LiteLoader] 38;2;239;046;046mIn API: McClass::regConsoleCmd 15:51:52 ERROR [LiteLoader] 38;2;239;046;046mIn Plugin: iLand

please report your plugin list

HongyiMC commented 2 years ago

15:51:52 ERROR [LiteLoader] C++ Uncaught Exception Detected! 15:51:52 ERROR [LiteLoader] There is already a command named land 15:51:52 ERROR [LiteLoader] [failed to get stacktrace] 15:51:52 ERROR [LiteLoader] 38;2;239;046;046mIn API: McClass::regConsoleCmd 15:51:52 ERROR [LiteLoader] 38;2;239;046;046mIn Plugin: iLand

please report your plugin list

This happens even with newly installed LLBDS, with no other plugins installed, just iLand

moxisuki commented 2 years ago

because the new version of Liteloader detects duplicate instruction registration, and the iland's subcommand is false command https://github.com/LiteLScript-Dev/iLand-Core/blob/87c5155a3cef7b5922570e2607931e1f2bf4bf72/iland-core.lua#L4076 https://github.com/LiteLScript-Dev/iLand-Core/blob/87c5155a3cef7b5922570e2607931e1f2bf4bf72/iland-core.lua#L4110

Redbeanw44602 commented 2 years ago

This is a LiteLoader issue. Fortunately, this has no effect on any functionality, any subcommands of land should work, and the land command is only used to display the version.