From 4514570dcf289a6dffaf85e70f55067bdb237aff Mon Sep 17 00:00:00 2001 From: Josscoder Date: Tue, 10 Jan 2023 12:57:38 -0500 Subject: [PATCH] feat: change file utils algorithms for improvide optimization --- .../java/me/josscoder/jessentials/utils/LocalGameMap.java | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/main/java/me/josscoder/jessentials/utils/LocalGameMap.java b/src/main/java/me/josscoder/jessentials/utils/LocalGameMap.java index 650c76b..0658221 100644 --- a/src/main/java/me/josscoder/jessentials/utils/LocalGameMap.java +++ b/src/main/java/me/josscoder/jessentials/utils/LocalGameMap.java @@ -33,11 +33,7 @@ public boolean load() { gameId + "_" + sourceWorldFolder.getName() + "_" + System.currentTimeMillis() ); - try { - FileUtils.copy(sourceWorldFolder, activeWorldFolder); - } catch (IOException e) { - e.printStackTrace(); - } + FileUtils.copy(sourceWorldFolder, activeWorldFolder); Server.getInstance().loadLevel(activeWorldFolder.getName());