This repository was archived by the owner on Nov 28, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +5
-3
lines changed
src/main/kotlin/io/github/dockyardmc Expand file tree Collapse file tree 3 files changed +5
-3
lines changed Original file line number Diff line number Diff line change 11kotlin.daemon.jvmargs =-Xmx3000m
2- dockyard.version =0.9.9.4 -SNAPSHOT
2+ dockyard.version =0.9.9.5 -SNAPSHOT
33kotlin.code.style =official
Original file line number Diff line number Diff line change @@ -70,6 +70,7 @@ object DataComponentRegistry {
7070 val BLOCK_ENTITY_DATA = register(" minecraft:block_entity_data" , BlockEntityDataComponent ::class )
7171 val INSTRUMENT = register(" minecraft:instrument" , InstrumentComponent ::class )
7272 val PROVIDES_TRIM_MATERIAL = register(" minecraft:provides_trim_material" , ProvidesTrimMaterialComponent ::class )
73+ val OMINOUS_BOTTLE_AMPLIFIER = register(" minecraft:ominous_battle_amplifier" , OminousBattleAmplifier ::class )
7374 val JUKEBOX_PLAYABLE = register(" minecraft:jukebox_playable" , JukeboxPlayableComponent ::class )
7475 val PROVIDES_BANNER_PATTERNS = register(" minecraft:provides_banner_patterns" , ProvidesBannerPatterns ::class )
7576 val RECIPES = register(" minecraft:recipes" , RecipesComponent ::class )
Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ class PacketLengthDecoder : ByteToMessageDecoder() {
1818 val length = buffer.readVarInt()
1919
2020 // reset the reader index if we don't have enough bytes and wait for next part of the message to arrive and check again
21- if (length > buffer.readableBytes()) {
21+ if (length > buffer.readableBytes()) {
2222 buffer.resetReaderIndex()
2323 return
2424 }
@@ -32,7 +32,8 @@ class PacketLengthDecoder : ByteToMessageDecoder() {
3232
3333 override fun exceptionCaught (connection : ChannelHandlerContext , cause : Throwable ) {
3434 log(" Error occurred while decoding frame: " , LogType .ERROR )
35- log(cause.cause as Exception )
35+ val exception = (if (cause.cause == null ) cause else cause.cause) as Exception
36+ log(exception)
3637 connection.channel().close().sync()
3738 }
3839}
You can’t perform that action at this time.
0 commit comments