Skip to content

Commit 35c3e83

Browse files
committed
fix trying to pull from creative container when in survival
1 parent 74a2f06 commit 35c3e83

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,11 +62,11 @@ data object CreativeContainer : MaterialContainer(Rank.Creative) {
6262

6363
context(safeContext: SafeContext)
6464
override fun materialAvailable(selection: StackSelection): Int =
65-
if (safeContext.player.isCreative && correctScreenHandler && selection.optimalStack != null) Int.MAX_VALUE else 0
65+
if (safeContext.player.isCreative && correctScreenHandler && selection.optimalStack != null) Int.MAX_VALUE else -1
6666

6767
context(safeContext: SafeContext)
6868
override fun spaceAvailable(selection: StackSelection): Int =
69-
if (safeContext.player.isCreative && correctScreenHandler && selection.optimalStack != null) Int.MAX_VALUE else 0
69+
if (safeContext.player.isCreative && correctScreenHandler && selection.optimalStack != null) Int.MAX_VALUE else -1
7070

7171
context(safeContext: SafeContext)
7272
private val correctScreenHandler

0 commit comments

Comments
 (0)