Skip to content

Commit

Permalink
fix(tsl): CLEAR everything won't work on sublist selections
Browse files Browse the repository at this point in the history
  • Loading branch information
iGoodie committed Aug 1, 2020
1 parent b03d1de commit 0c15157
Showing 1 changed file with 4 additions and 1 deletion.
Expand Up @@ -32,7 +32,10 @@ protected void performAction(ServerPlayerEntity player, EventArguments args) {
if (inventoryType == null) {
player.inventory.clear();
} else {
getInventory(player, inventoryType).clear();
List<ItemStack> inventory = getInventory(player, inventoryType);
for (int i = 0; i < inventory.size(); i++) {
inventory.set(i, ItemStack.EMPTY);
}
}

} else if (selectionType == SelectionType.RANDOM) {
Expand Down

0 comments on commit 0c15157

Please sign in to comment.