diff --git a/src/database/database.jmc b/src/database/database.jmc index 621b87b..dce0f74 100644 --- a/src/database/database.jmc +++ b/src/database/database.jmc @@ -49,7 +49,7 @@ class database.benchmark { "temp.arrayTest1", () => { if (String.isEqual("ferdinland:ferdinland", "temp.arrayTest1[0].string", "entry500")) { - logger(1, database.benchmark.arrayTest1.run, "found: entry500"); + ::temp.result = ::temp.arrayTest1[0]; } if (String.isEqual("ferdinland:ferdinland", "temp.arrayTest1[0].string", "entry500")) { return; @@ -85,14 +85,14 @@ class database.benchmark { } function arrayTest2._searchIndex() { $::temp.index = ::database.test.arrayTest2.index.$(keyword); - tellraw @a {"nbt":"temp.index","storage":"ferdinland:ferdinland"}; } function arrayTest2._searchArray() { - $tellraw @a {"nbt":"database.test.arrayTest2.array[$(index)]", "storage":"ferdinland:ferdinland"}; + $::temp.result = ::database.test.arrayTest2.array[$(index)]; } function arrayTest2.run() { this.arrayTest2._searchIndex({keyword: "entry500"}); this.arrayTest2._searchArray() with ::temp; ::temp.index.del(); + ::temp.result.del(); } }