Skip to content

Commit

Permalink
Fixed shift clicking disallowed items voiding them.
Browse files Browse the repository at this point in the history
Closes #36
  • Loading branch information
Flanks255 committed Sep 8, 2024
1 parent ea675ac commit e0318a9
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 3 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
[ 1.2.4+1.21.1 ]
- Fixed voiding disallowed items when shift-clicking.

[ 1.2.3+1.21.1 ]
- Fixed pickup sounds playing when they shouldn't.

Expand Down
3 changes: 3 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,9 @@ dependencies {
// runtimeOnly fg.deobf("curse.maven:TITANIUM-287342:3819942")
//runtimeOnly fg.deobf("curse.maven:BUILDINGGADGETS-298187:3553977")
runtimeOnly "curse.maven:MG-351748:5615761"
runtimeOnly "curse.maven:EMI-580555:5619579"
runtimeOnly "curse.maven:FAST-288885:5670423"
runtimeOnly "curse.maven:PLACE-283644:5626449"
}

jar {
Expand Down
4 changes: 2 additions & 2 deletions gradle.properties
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
org.gradle.jvmargs=-Xmx6G
org.gradle.daemon=false
mod_version=1.2.3
mod_version=1.2.4
minecraft_version=1.21.1
neo_version=21.1.8
neo_version=21.1.27
neogradle.subsystems.parchment.minecraftVersion=1.21
neogradle.subsystems.parchment.mappingsVersion=2024.06.23
jei_version=19.4.0.28
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ public List<PSUSlot> getMatchingSlots(@Nonnull ItemStack stack) {
// Returns the remainder of the stack if it could not be fully inserted.
public ItemStack insertItemSlotless(@Nonnull ItemStack stack, boolean allowEmpty, boolean allowVoid) {
if (stack.isEmpty() || !isItemValid(0, stack))
return ItemStack.EMPTY;
return stack;

boolean foundAny = false;
int count = stack.getCount();
Expand Down

0 comments on commit e0318a9

Please sign in to comment.