Skip to content
This repository was archived by the owner on Apr 22, 2025. It is now read-only.

Commit e235d7d

Browse files
committed
Fixed an unexpected reference in the configuration file
1 parent d569154 commit e235d7d

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

patches/server/0002-Vine-Config.patch

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -140,24 +140,22 @@ index 0000000000000000000000000000000000000000..dd96b107b3208707958735ef059c6b20
140140
\ No newline at end of file
141141
diff --git a/src/main/kotlin/one/tranic/levelpowered/vine/config/VineConfig.kt b/src/main/kotlin/one/tranic/levelpowered/vine/config/VineConfig.kt
142142
new file mode 100644
143-
index 0000000000000000000000000000000000000000..51a527c2c5819808277fc87473b76db4b7253817
143+
index 0000000000000000000000000000000000000000..80eeb4a1c7d3789a62a298722471ab3edac0688c
144144
--- /dev/null
145145
+++ b/src/main/kotlin/one/tranic/levelpowered/vine/config/VineConfig.kt
146-
@@ -0,0 +1,199 @@
146+
@@ -0,0 +1,197 @@
147147
+package one.tranic.levelpowered.vine.config
148148
+
149149
+import gg.pufferfish.pufferfish.simd.SIMDDetection
150150
+import net.minecraft.server.MinecraftServer
151151
+import one.tranic.levelpowered.vine.commands.VineCfgCommand
152152
+import org.bukkit.Bukkit
153153
+import org.bukkit.configuration.file.YamlConfiguration
154-
+import org.simpleyaml.configuration.file.YamlFile
155154
+import java.io.File
156155
+
157156
+object VineConfig {
158157
+ var logger: org.slf4j.Logger = MinecraftServer.LOGGER
159158
+ private lateinit var configuration: YamlConfiguration
160-
+ private val config: YamlFile = YamlFile()
161159
+
162160
+ @JvmStatic
163161
+ fun setCommand() {
@@ -305,8 +303,8 @@ index 0000000000000000000000000000000000000000..51a527c2c5819808277fc87473b76db4
305303
+ return configuration.getInt(path)
306304
+ }
307305
+
308-
+ private fun getString(path: String): String {
309-
+ return config.getString(path)
306+
+ private fun getString(path: String): String? {
307+
+ return configuration.getString(path)
310308
+ }
311309
+
312310
+ object LevelBukkit {

0 commit comments

Comments
 (0)