Skip to content

Commit

Permalink
Merge pull request #336 from P3pp3rF1y/1.21.x-dev
Browse files Browse the repository at this point in the history
fix: 🐛 Fix slots that don't match search filter to properly move out …
  • Loading branch information
P3pp3rF1y authored Nov 25, 2024
2 parents 15c4bc4 + f56e623 commit d8c3670
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ loader_version_range=[4,)
mod_id=sophisticatedcore
mod_name=Sophisticated Core
mod_license=GNU General Public License v3.0
mod_version=0.7.12
mod_version=0.7.13
mod_group_id=sophisticatedcore
mod_authors=P3pp3rF1y
mod_description=A library / shared functionality mod for Sophisticated Storage and Backpacks
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ public abstract class StorageScreenBase<S extends StorageContainerMenuBase<?>> e
private static final int UPGRADE_SLOT_HEIGHT = 16;
private static final int UPGRADE_BOTTOM_HEIGHT = 6;
public static final int UPGRADE_INVENTORY_OFFSET = 21;
public static final int DISABLED_SLOT_X_POS = -1000;
public static final int DISABLED_SLOT_X_POS = -2000;
static final int SLOTS_Y_OFFSET = 17;
static final int SLOTS_X_OFFSET = 7;
public static final int ERROR_SLOT_COLOR = (DyeColor.RED.getTextureDiffuseColor() & 0x00_FFFFFF) | 0xAA000000;
Expand Down Expand Up @@ -176,7 +176,7 @@ protected void updateStorageSlotsPositions() {
yPosition += 18;
}
} else {
slot.y = -100;
slot.x = DISABLED_SLOT_X_POS;
}

}
Expand Down

0 comments on commit d8c3670

Please sign in to comment.