Skip to content

Commit b9b1852

Browse files
committed
Fixes
1 parent 7ae1c5c commit b9b1852

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

  • fabric/src/main/kotlin/neoscripts/server/features/commands/impl

‎fabric/src/main/kotlin/neoscripts/server/features/commands/impl/LuaCommand.kt‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ object LuaCommand {
136136

137137
if (scriptFile.exists()) {
138138
try {
139-
val script = ClientMain.LUA_MANAGER?.getScript(scriptFile, true, source.server)
139+
val script = luaManager?.getScript(scriptFile, true, source.server)
140140
if (script != null) {
141141
luaManager?.executeScript(scriptFile, script)
142142
reply(source, "${ServerMain.PREFIX}§7Script §a$name §7is now §aloaded§7.")
@@ -239,7 +239,7 @@ object LuaCommand {
239239
val wasLoaded = luaManager.unloadScript(scriptFile.nameWithoutExtension)
240240

241241
// Затем загружаем скрипт
242-
val script = ClientMain.LUA_MANAGER?.getScript(scriptFile, true, source.server)
242+
val script = luaManager.getScript(scriptFile, true, source.server)
243243
if (script != null) {
244244
val result = luaManager.executeScript(scriptFile, script)
245245

0 commit comments

Comments
 (0)