From 448a76e6e0ab9f3f6a0291f1e64f24dddeee925e Mon Sep 17 00:00:00 2001 From: Moritz Zwerger Date: Thu, 18 Apr 2024 16:59:08 +0200 Subject: [PATCH] readme: use shields-io.bixilon.de --- ReadMe.md | 6 +++--- .../packets/s2c/play/chunk/ChunkS2CPTest.kt | 13 +++++++++++-- 2 files changed, 14 insertions(+), 5 deletions(-) diff --git a/ReadMe.md b/ReadMe.md index 4244e25161..2aa484e495 100644 --- a/ReadMe.md +++ b/ReadMe.md @@ -1,8 +1,8 @@ # Minosoft -[](https://matrix.to/#/#minosoft:matrix.org) - - +[](https://matrix.to/#/#minosoft:matrix.org) + + Minosoft is an open source minecraft client, written from scratch in kotlin (and java). It aims to bring more functionality and stability. (This is not a classical clone of minecraft, it completely re implements it!) diff --git a/src/integration-test/kotlin/de/bixilon/minosoft/protocol/packets/s2c/play/chunk/ChunkS2CPTest.kt b/src/integration-test/kotlin/de/bixilon/minosoft/protocol/packets/s2c/play/chunk/ChunkS2CPTest.kt index 4a0039d4de..db306d62d5 100644 --- a/src/integration-test/kotlin/de/bixilon/minosoft/protocol/packets/s2c/play/chunk/ChunkS2CPTest.kt +++ b/src/integration-test/kotlin/de/bixilon/minosoft/protocol/packets/s2c/play/chunk/ChunkS2CPTest.kt @@ -18,6 +18,8 @@ import de.bixilon.kutil.cast.CastUtil.unsafeCast import de.bixilon.kutil.observer.DataObserver import de.bixilon.kutil.reflection.ReflectionUtil.forceSet import de.bixilon.kutil.stream.InputStreamUtil.readAll +import de.bixilon.kutil.time.TimeUtil.nanos +import de.bixilon.kutil.unit.UnitFormatter.formatNanos import de.bixilon.mbf.MBFBinaryReader import de.bixilon.minosoft.data.registries.blocks.MinecraftBlocks import de.bixilon.minosoft.data.registries.blocks.state.BlockState @@ -104,7 +106,6 @@ class ChunkS2CPTest { assertEquals(blocks[3]!![0, 11, 0]!!.block.identifier, MinecraftBlocks.DIRT) } - @Test(groups = ["packet"]) fun cuberite_1_12_2() { val packet = read("cuberite_1_12_2", "1.12.2", dimension = DimensionProperties(light = true, skyLight = true, minY = 0, height = 256)) assertEquals(packet.position, Vec2i(0, 0)) @@ -120,5 +121,13 @@ class ChunkS2CPTest { assertEquals(blocks[3]!![1, 11, 0]!!.block.identifier, MinecraftBlocks.DIRT) assertEquals(blocks[4]!![4, 3, 4]!!.block.identifier, MinecraftBlocks.STONE) } -} +// fun benchmark() { +// val start = nanos() +// for (i in 0 until 10000) { +// hypixel1_19_3() +// } +// val end = nanos() +// println("Took ${(end-start).formatNanos()}") +// } +}