Skip to content

Commit

Permalink
Reverse condition
Browse files Browse the repository at this point in the history
  • Loading branch information
LeoDog896 committed Dec 22, 2021
1 parent 46c6bba commit c14ee3a
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -20,7 +20,7 @@ object ClearCommand : Kommand({
for (num in 0 until player.inventory.size) {

// Don't clear permenant items.
if (InventoryManager.slot(num) == null) continue
if (InventoryManager.slot(num) != null) continue

player.inventory.setItemStack(num, ItemStack.AIR)
}
Expand Down

0 comments on commit c14ee3a

Please sign in to comment.