diff --git a/src/main/kotlin/ru/dbotthepony/mc/otm/network/StreamCodecs.kt b/src/main/kotlin/ru/dbotthepony/mc/otm/network/StreamCodecs.kt index 62ce5522a..0402e7a67 100644 --- a/src/main/kotlin/ru/dbotthepony/mc/otm/network/StreamCodecs.kt +++ b/src/main/kotlin/ru/dbotthepony/mc/otm/network/StreamCodecs.kt @@ -39,6 +39,8 @@ object StreamCodecs { val BLOCK_TYPE = MatteryStreamCodec.Of(FriendlyByteBuf::writeBlockType, FriendlyByteBuf::readBlockType) val RELATIVE_SIDE = MatteryStreamCodec.Enum(RelativeSide::class.java) val DIRECTION = MatteryStreamCodec.Enum(Direction::class.java) + val RELATIVE_SIDE_NULLABLE = RELATIVE_SIDE.nullable() + val DIRECTION_NULLABLE = DIRECTION.nullable() val RGBA: MatteryStreamCodec = StreamCodec.of( { s, v -> s.writeFloat(v.red); s.writeFloat(v.green); s.writeFloat(v.blue); s.writeFloat(v.alpha) },