Skip to content

Commit 9a8a8a7

Browse files
committed
containers with a disposable stack greater than 0
1 parent 83caf38 commit 9a8a8a7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/kotlin/com/lambda/interaction/material/container/ContainerManager.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ object ContainerManager : Loadable {
124124
.filter { inventory.containerSelection.matches(it) }
125125

126126
fun findDisposable(inventory: InventoryConfig = TaskFlowModule.inventory) = container().find { container ->
127-
inventory.disposables.any { container.materialAvailable(it.asItem().select()) >= 0 }
127+
inventory.disposables.any { container.materialAvailable(it.asItem().select()) > 0 }
128128
}
129129

130130
class NoContainerFound(selection: StackSelection) : Exception("No container found matching $selection")

0 commit comments

Comments
 (0)