mirror of
https://github.com/darksaid98/HuskHomes.git
synced 2026-12-02 06:28:49 +00:00
Fix position lists not showing single item lists
This commit is contained in:
1 parent
f6cb19cf40
commit
d74cc97942
1 file changed
+1
-1
@@ -42,7 +42,7 @@ public abstract class PositionList {
|
||||
display.add(getHeader(itemIndexStart + 1, itemIndexEnd + 1, lastItemIndex + 1));
|
||||
|
||||
// Add the items
|
||||
if (itemIndexEnd - itemIndexStart == 0) {
|
||||
if (itemIndexEnd - itemIndexStart < 0) {
|
||||
display.add(getNoItemsMessage());
|
||||
} else {
|
||||
final StringJoiner itemJoiner = new StringJoiner(getItemSeparator());
|
||||
|
||||
Reference in new issue
Block a user