mirror of
https://github.com/darksaid98/HuskHomes.git
synced 2026-12-04 14:38:53 +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));
|
display.add(getHeader(itemIndexStart + 1, itemIndexEnd + 1, lastItemIndex + 1));
|
||||||
|
|
||||||
// Add the items
|
// Add the items
|
||||||
if (itemIndexEnd - itemIndexStart == 0) {
|
if (itemIndexEnd - itemIndexStart < 0) {
|
||||||
display.add(getNoItemsMessage());
|
display.add(getNoItemsMessage());
|
||||||
} else {
|
} else {
|
||||||
final StringJoiner itemJoiner = new StringJoiner(getItemSeparator());
|
final StringJoiner itemJoiner = new StringJoiner(getItemSeparator());
|
||||||
|
|||||||
Reference in new issue
Block a user