浏览代码

Merge branch 'master' of mloeschenkohl/kajetans-plugin into master

Kajetan Johannes Hammerle 2 年之前
父节点
当前提交
48241693dd
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/me/hammerle/kp/snuviscript/commands/ErrorCommands.java

+ 1 - 1
src/me/hammerle/kp/snuviscript/commands/ErrorCommands.java

@@ -23,7 +23,7 @@ public class ErrorCommands {
             KajetansPlugin.logger.getDebugHistory().clear();
         });
         KajetansPlugin.scriptManager.registerFunction("debug.getsize", (sc, in) -> {
-            return KajetansPlugin.logger.getDebugHistory().getLength();
+            return (double) KajetansPlugin.logger.getDebugHistory().getLength();
         });
         KajetansPlugin.scriptManager.registerFunction("debug.getindex", (sc, in) -> {
             return KajetansPlugin.logger.getDebugHistory().get(in[0].getInt(sc)).message;