Skip to content

Commit

Permalink
readme: use shields-io.bixilon.de
Browse files Browse the repository at this point in the history
  • Loading branch information
Bixilon committed Apr 18, 2024
1 parent 3800460 commit 448a76e
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 5 deletions.
6 changes: 3 additions & 3 deletions ReadMe.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
# Minosoft

[<img src="https://img.shields.io/matrix/minosoft:matrix.org?style=for-the-badge">](https://matrix.to/#/#minosoft:matrix.org)
<img src="https://img.shields.io/gitlab/pipeline-status/bixilon/minosoft?branch=master&gitlab_url=https%3A%2F%2Fgitlab.bixilon.de&style=for-the-badge">
<img src="https://img.shields.io/badge/license-GPLv3-brightgreen?style=for-the-badge">
[<img src="https://shields-io.bixilon.de/matrix/minosoft:matrix.org?style=for-the-badge">](https://matrix.to/#/#minosoft:matrix.org)
<img src="https://shields-io.bixilon.de/gitlab/pipeline-status/bixilon/minosoft?branch=master&gitlab_url=https%3A%2F%2Fgitlab.bixilon.de&style=for-the-badge">
<img src="https://shields-io.bixilon.de/badge/license-GPLv3-brightgreen?style=for-the-badge">

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!)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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))
Expand All @@ -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()}")
// }
}

0 comments on commit 448a76e

Please sign in to comment.