Skip to content

Commit

Permalink
fix: properly fallback to standalone auth
Browse files Browse the repository at this point in the history
- if velocity forwarding support not successfully enabled, fallback to standalone auth.
  • Loading branch information
CodeTheDev committed Feb 24, 2024
1 parent 1002fb3 commit b29eb39
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/main/java/dev/codeerror/overflow/OverflowLimbo.java
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,10 @@ public static void main(String[] args) {
switch (proxyType) {
case "velocity" -> {
String velocitySecret = config.getVelocitySecret();
if (velocitySecret.isBlank()) break;
if (velocitySecret.isBlank()) {
MojangAuth.init();
break;
}
VelocityProxy.enable(velocitySecret);
logger.info("Velocity modern forwarding support enabled.");
}
Expand Down

0 comments on commit b29eb39

Please sign in to comment.