Skip to content

Commit

Permalink
Temporarily disabled shift-clicking in the Tackle Box, due to item va…
Browse files Browse the repository at this point in the history
…nishing bug. Reported in #98
  • Loading branch information
GirafiStudios committed Mar 23, 2020
1 parent d8daea3 commit e0f8a70
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 4 deletions.
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
minecraft_version=1.15.2
forge_version=31.1.16
mappings=20200127-1.15.1
mod_version=2.0.11
mod_version=2.0.12
jei_version=6.0.0.2

org.gradle.jvmargs=-Xmx4G
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -85,26 +85,33 @@ public boolean canInteractWith(@Nonnull PlayerEntity player) {

@Override
@Nonnull
public ItemStack transferStackInSlot(PlayerEntity player, int index) {
ItemStack transferStack = ItemStack.EMPTY;
public ItemStack transferStackInSlot(PlayerEntity player, int index) { //TODO Temporarily disabled
/*ItemStack transferStack = ItemStack.EMPTY;
Slot slot = this.inventorySlots.get(index);
if (slot != null && slot.getHasStack()) {
ItemStack slotStack = slot.getStack();
System.out.println("INDEX: " + index + " SLOT: " + slot.slotNumber + " STACK: " + slotStack);
transferStack = slotStack.copy();
if (index < this.rows * this.collumns) {
System.out.println("FIRST IF");
if (!this.mergeItemStack(slotStack, this.rows * this.collumns, this.inventorySlots.size(), true)) {
System.out.println("IF NOT MERGE");
return ItemStack.EMPTY;
}
} else if (!this.mergeItemStack(slotStack, 0, this.rows * this.collumns, false)) {
System.out.println("ELSE IF NOT MERGE");
return ItemStack.EMPTY;
}
if (slotStack.isEmpty()) {
System.out.println("EMPTY SLOT STACK");
slot.putStack(ItemStack.EMPTY);
} else {
System.out.println("ELSE. CHANGE SLOT");
slot.onSlotChanged();
}
}
return transferStack;
System.out.println("TRANSFERSTACK: " + transferStack);*/
return ItemStack.EMPTY;
}

@Override
Expand Down

0 comments on commit e0f8a70

Please sign in to comment.