Change list-resources order

This commit is contained in:
Arne Keller 2020-03-11 10:55:06 +01:00
parent 1fecffad38
commit c058aeadde
3 changed files with 36 additions and 36 deletions

View File

@ -49,38 +49,6 @@ metal
metal
metal
metal
metal
metal
metal
metal
metal
metal
metal
metal
metal
metal
metal
metal
metal
metal
metal
metal
plastic
plastic
plastic
plastic
plastic
plastic
plastic
plastic
plastic
plastic
plastic
plastic
plastic
plastic
plastic
plastic
wood
wood
wood
@ -97,6 +65,38 @@ wood
wood
wood
wood
plastic
plastic
plastic
plastic
plastic
plastic
plastic
plastic
plastic
plastic
plastic
plastic
plastic
plastic
plastic
plastic
metal
metal
metal
metal
metal
metal
metal
metal
metal
metal
metal
metal
metal
metal
metal
metal
axe
club
fireplace

View File

@ -5,12 +5,12 @@ plastic
wood
metal
plastic
plastic
metal
wood
plastic
metal
plastic
wood
metal
plastic
EMPTY
shack
OK

View File

@ -17,7 +17,7 @@ public final class ListResources extends Command {
if (resources.isEmpty()) {
Terminal.printLine("EMPTY");
} else {
resources.descendingIterator().forEachRemaining(Terminal::printLine);
resources.forEach(Terminal::printLine);
}
}