Skip to content

Commit 362bd23

Browse files
committed
Update exception catch in extension impl
1 parent 43ad71c commit 362bd23

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

extension/src/main/java/dev/kejona/geyserblockplatform/extension/GeyserBlockPlatformExtension.java

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,6 @@
1111
import org.geysermc.geyser.api.event.lifecycle.GeyserPostInitializeEvent;
1212
import org.geysermc.geyser.api.extension.Extension;
1313

14-
import java.io.IOException;
15-
1614
public class GeyserBlockPlatformExtension implements Extension {
1715

1816
private BedrockHandler handler;
@@ -26,7 +24,7 @@ public void onPostInitialize(GeyserPostInitializeEvent event) {
2624

2725
try {
2826
this.config = ConfigLoader.loadConfig(this.dataFolder());
29-
} catch (IOException e) {
27+
} catch (Exception e) {
3028
logger().severe("Failed to load config");
3129
e.printStackTrace();
3230
disable();

0 commit comments

Comments
 (0)