Skip to content

Commit

Permalink
refactor: make sculkVibrationSignal's given instance not dependent on…
Browse files Browse the repository at this point in the history
… external ByteCodec
  • Loading branch information
kory33 committed Mar 5, 2022
1 parent 0187e3c commit fd6b037
Showing 1 changed file with 1 addition and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down Expand Up @@ -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
}

0 comments on commit fd6b037

Please sign in to comment.