Allow loading extensions in dev environment

This commit is contained in:
RednedEpic 2022-04-24 14:17:15 -05:00
parent 766f28ec60
commit 735697b553
2 changed files with 1 additions and 6 deletions

1
.gitignore vendored
View File

@ -240,6 +240,7 @@ nbdist/
### Geyser ###
run/
extensions/
config.yml
logs/
key.pem

View File

@ -129,12 +129,6 @@ public class GeyserExtensionLoader extends ExtensionLoader {
@Override
protected void loadAllExtensions(@NonNull ExtensionManager extensionManager) {
// noinspection ConstantConditions
if (GeyserImpl.VERSION.equalsIgnoreCase("dev")) {
GeyserImpl.getInstance().getLogger().error(GeyserLocale.getLocaleStringLog("geyser.extensions.load.failed_dev_environment"));
return;
}
// noinspection ConstantConditions
if (!GeyserImpl.VERSION.contains(".")) {
GeyserImpl.getInstance().getLogger().error(GeyserLocale.getLocaleStringLog("geyser.extensions.load.failed_version_number"));