Browse Source

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

Kajetan Johannes Hammerle 2 năm trước cách đây
mục cha
commit
48241693dd

+ 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;