Skip to content

Commit

Permalink
Fixed inventory commands dumping air
Browse files Browse the repository at this point in the history
  • Loading branch information
LatvianModder committed Jul 19, 2023
1 parent 7bf0b26 commit bc20a4b
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -286,7 +286,7 @@ private static int hotbar(ServerPlayer player) {
}

private static int dump(List<ItemStack> stacks, ServerPlayer player, String name) {
var dump = stacks.stream().map(ItemStackJS::toItemString).toList();
var dump = stacks.stream().filter(is -> !is.isEmpty()).map(ItemStackJS::toItemString).toList();
player.sendSystemMessage(copy(dump.toString(), ChatFormatting.WHITE, name + " Item List"));
return 1;
}
Expand Down

0 comments on commit bc20a4b

Please sign in to comment.