From fd6b037583df5eb280040f065f832574b5aa90a0 Mon Sep 17 00:00:00 2001 From: Kory Date: Sat, 5 Mar 2022 19:54:17 +0000 Subject: [PATCH] refactor: make sculkVibrationSignal's given instance not dependent on external ByteCodec --- .../impl/connection/protocol/PacketIntentCodecCache.scala | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/protocol-impl/src/main/scala/io/github/kory33/s2mctest/impl/connection/protocol/PacketIntentCodecCache.scala b/protocol-impl/src/main/scala/io/github/kory33/s2mctest/impl/connection/protocol/PacketIntentCodecCache.scala index ae6c0fe1..3646a9da 100644 --- a/protocol-impl/src/main/scala/io/github/kory33/s2mctest/impl/connection/protocol/PacketIntentCodecCache.scala +++ b/protocol-impl/src/main/scala/io/github/kory33/s2mctest/impl/connection/protocol/PacketIntentCodecCache.scala @@ -132,6 +132,7 @@ class PacketIntentCodecCache(using ByteCodec[Position]) { given ByteCodec[SpawnPlayer_i32_HeldItem] = autogenerateFor[SpawnPlayer_i32_HeldItem] given ByteCodec[SpawnPlayer_i32_HeldItem_String] = autogenerateFor[SpawnPlayer_i32_HeldItem_String] given ByteCodec[Animation] = autogenerateFor[Animation] + given ByteCodec[SculkVibrationSignal] = autogenerateFor[SculkVibrationSignal] given ByteCodec[Statistics] = autogenerateFor[Statistics] given ByteCodec[BlockBreakAnimation] = autogenerateFor[BlockBreakAnimation] given ByteCodec[BlockBreakAnimation_i32] = autogenerateFor[BlockBreakAnimation_i32] @@ -376,10 +377,5 @@ class PacketIntentCodecCache(using ByteCodec[Position]) { given entityEquipment_VarInt_1_17_1: ByteCodec[EntityEquipment_VarInt[Slot.Upto_1_17_1]] = entityEquipment_VarInt[Slot.Upto_1_17_1] // endregion - // region Position-dependent codecs - given sculkVibrationSignal(using pc: ByteCodec[Position]): ByteCodec[SculkVibrationSignal] = - autogenerateFor[SculkVibrationSignal] - // endregion - // format: on }