Skip to content

Commit

Permalink
crash on dev if there are legacy plugins present
Browse files Browse the repository at this point in the history
  • Loading branch information
deirn committed Jun 5, 2024
1 parent c919c80 commit 7cbcb8e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/main/java/mcp/mobius/waila/plugin/PluginLoader.java
Original file line number Diff line number Diff line change
Expand Up @@ -161,9 +161,9 @@ public final void loadPlugins() {
if (extraPlugin != null) initialize(extraPlugin);

if (!legacyPlugins.isEmpty()) {
LOG.warn("Found plugins registered via legacy platform-dependant method:");
LOG.warn(legacyPlugins.stream().collect(Collectors.joining(", ", "[", "]")));
LOG.warn("The method will be removed on Minecraft 1.21");
LOG.error("Found plugins registered via legacy platform-dependant method:");
LOG.error(legacyPlugins.stream().collect(Collectors.joining(", ", "[", "]")));
if (Waila.DEV) throw new UnsupportedOperationException("Found legacy plugins");
}

Registrar.get().lock();
Expand Down

0 comments on commit 7cbcb8e

Please sign in to comment.