Skip to content

Commit 36f1034

Browse files
committed
reverted failure on creative transfer
1 parent 20a7846 commit 36f1034

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

common/src/main/kotlin/com/lambda/interaction/material/container/containers/MainHandContainer.kt

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,11 @@ object MainHandContainer : MaterialContainer(Rank.MAIN_HAND) {
4343
override val name: String get() = "Depositing [$selection] to ${hand.name.lowercase().replace("_", " ")}"
4444

4545
override fun SafeContext.onStart() {
46+
// FixMe: If the player tries to deposit from the CreativeInventory to the main hand, this fails
47+
// because we check if the player has the matching stack in its regular inventory, and this never happen
4648
val moveStack = InventoryContainer.matchingStacks(selection).firstOrNull() ?: run {
47-
failure("No matching stacks found in inventory")
49+
success()
50+
//failure("No matching stacks found in inventory")
4851
return
4952
}
5053

0 commit comments

Comments
 (0)