Skip to content

Commit b00e295

Browse files
committed
support for latest bogo feature
1 parent 41beeed commit b00e295

2 files changed

Lines changed: 5 additions & 3 deletions

File tree

dependencies.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,9 @@ dependencies {
3232
testCompileOnly("org.projectlombok:lombok:1.18.42")
3333
testAnnotationProcessor("org.projectlombok:lombok:1.18.42")
3434

35-
compileOnlyApi rfg.deobf("curse.maven:inventory-bogosorter-632327:7403680-sources-7403683")
35+
compileOnlyApi rfg.deobf("curse.maven:inventory-bogosorter-632327:7412409-sources-7412411")
3636
if (project.debug_bogo.toBoolean()) {
37-
runtimeOnly rfg.deobf("curse.maven:inventory-bogosorter-632327:7403680-sources-7403683")
37+
runtimeOnly rfg.deobf("curse.maven:inventory-bogosorter-632327:7412409-sources-7412411")
3838
runtimeOnly rfg.deobf('curse.maven:key_binding_patch-928895:5951859')
3939
}
4040

src/main/java/com/cleanroommc/modularui/widgets/slot/ItemSlot.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
import com.cleanroommc.modularui.utils.Platform;
2121
import com.cleanroommc.modularui.value.sync.ItemSlotSH;
2222
import com.cleanroommc.modularui.widget.Widget;
23+
import com.cleanroommc.bogosorter.common.config.PlayerConfig;
2324
import com.cleanroommc.bogosorter.common.lock.SlotLock;
2425
import com.cleanroommc.neverenoughanimations.NEAConfig;
2526

@@ -249,7 +250,8 @@ private void drawSlot(ModularSlot slotIn) {
249250
return;
250251
}
251252

252-
if (Container.canAddItemToSlot(slotIn, itemstack1, true) && getScreen().getContainer().canDragIntoSlot(slotIn)) {
253+
if (Container.canAddItemToSlot(slotIn, itemstack1, true) && getScreen().getContainer().canDragIntoSlot(slotIn) &&
254+
(!ModularUI.Mods.BOGOSORTER.isLoaded() || PlayerConfig.getClient().onlyBlockSorting || !SlotLock.getClientCap().isSlotLocked(slotIn))) {
253255
itemstack = itemstack1.copy();
254256
isDragPreview = true;
255257
Container.computeStackSize(acc.getDragSplittingSlots(), acc.getDragSplittingLimit(), itemstack, slotIn.getStack().isEmpty() ? 0 : slotIn.getStack().getCount());

0 commit comments

Comments
 (0)