From 18e10a70ddbb8a5203bd16ddba728e445ca36a4f Mon Sep 17 00:00:00 2001 From: Collin Smith Date: Tue, 19 Mar 2019 14:45:02 -0700 Subject: [PATCH] Fixed bug where D2S was stopping reading items too early (a couple item headers contained the section footer) --- core/src/com/riiablo/codec/D2S.java | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/core/src/com/riiablo/codec/D2S.java b/core/src/com/riiablo/codec/D2S.java index 49c774d8..c5e80172 100644 --- a/core/src/com/riiablo/codec/D2S.java +++ b/core/src/com/riiablo/codec/D2S.java @@ -681,10 +681,11 @@ public class D2S { assert socket.location == Location.SOCKET; } - if (BufferUtils.lookahead(buffer, SECTION_FOOTER)) { - break; - } + //if (BufferUtils.lookahead(buffer, SECTION_FOOTER)) { + // break; + //} } + assert BufferUtils.lookahead(buffer, SECTION_FOOTER); //assert !buffer.hasRemaining(); return this; }