Merge pull request #108 from garyttierney/bugfix/item-definition-decoder

Fix short circuit logic in ItemDefinitionDecoder
This commit is contained in:
Major committed 2015-12-21 04:14:09 +00:00
commit 7eab485447
1 file changed
+1 -1
@@ -108,7 +108,7 @@ public final class ItemDefinitionDecoder implements Runnable {
buffer.getShort();
buffer.getShort();
}
} else if (opcode == 78 || opcode == 79 || opcode >= 90 || opcode <= 93 || opcode == 95) {
} else if (opcode == 78 || opcode == 79 || (opcode >= 90 && opcode <= 93) || opcode == 95) {
buffer.getShort();
} else if (opcode == 97) {
definition.setNoteInfoId(buffer.getShort() & 0xFFFF);