diff --git a/src/main/kotlin/ru/dbotthepony/mc/otm/data/CodecList.kt b/src/main/kotlin/ru/dbotthepony/mc/otm/data/CodecList.kt index 0466a82da..572fa629c 100644 --- a/src/main/kotlin/ru/dbotthepony/mc/otm/data/CodecList.kt +++ b/src/main/kotlin/ru/dbotthepony/mc/otm/data/CodecList.kt @@ -95,7 +95,7 @@ class PredicatedCodecList(codecs: Stream, Predicat override fun decode(ops: DynamicOps, input: T): DataResult> { val results = ArrayList>>(codecs.size) - for ((codec) in codecs) { + for ((codec) in codecs.asReversed()) { val result = codec.decode(ops, input) if (result.result().isPresent) {