File tree Expand file tree Collapse file tree
fabric/src/main/kotlin/neoscripts/server/features/commands/impl Expand file tree Collapse file tree Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments