From cfc36dfbd23a006b3006ebe39da141f7b9bfe773 Mon Sep 17 00:00:00 2001 From: Esoteric Enderman Date: Mon, 28 Oct 2024 22:42:20 +0000 Subject: [PATCH] Simplify saving messages folder even further --- .../minecraft/plugins/library/messages/MessageManager.kt | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/lib/src/main/kotlin/foundation/esoteric/minecraft/plugins/library/messages/MessageManager.kt b/lib/src/main/kotlin/foundation/esoteric/minecraft/plugins/library/messages/MessageManager.kt index 4836b44..1384ae1 100644 --- a/lib/src/main/kotlin/foundation/esoteric/minecraft/plugins/library/messages/MessageManager.kt +++ b/lib/src/main/kotlin/foundation/esoteric/minecraft/plugins/library/messages/MessageManager.kt @@ -16,8 +16,6 @@ class MessageManager(plugin: FileManagedPlugin) { private val messagesFolder: File init { - plugin.getFileManager().saveResourceFolder("messages", !plugin.config.getBoolean("messages.enable-customisation", false)) - - messagesFolder = File(plugin.dataFolder, "messages") + messagesFolder = plugin.getFileManager().saveResourceFolder("messages", !plugin.config.getBoolean("messages.enable-customisation", false)) } }