Skip to content

Commit

Permalink
Fix Errors with Shift Crafting and Multiple Crafts
Browse files Browse the repository at this point in the history
  • Loading branch information
IntegerLimit committed Dec 8, 2023
1 parent 7429aad commit 4451b78
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 15 deletions.
4 changes: 2 additions & 2 deletions dependencies.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,6 @@
* For more details, see https://docs.gradle.org/8.0.1/userguide/java_library_plugin.html#sec:java_library_configurations_graph
*/
dependencies {
implementation rfg.deobf("curse.maven:fastworkbench-288885:4030366")
implementation rfg.deobf("curse.maven:avaritia-261348:3143349")
compileOnly rfg.deobf("curse.maven:fastworkbench-288885:4030366")
compileOnly rfg.deobf("curse.maven:avaritia-261348:3143349")
}
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,6 @@ public interface TileContainerWorkbench {

void updateOldMatrix(List<ItemStack> matrix);

void clearResult();

void addSlot(Slot slot);

EntityPlayer getPlayer();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ public void craft() {
continue;
}

((TileContainerWorkbench) container).clearResult();
((TileContainerWorkbench) container).updateResult();
}
needsClear = false;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,9 @@

import com.nomiceu.realbench.logic.*;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.entity.player.EntityPlayerMP;
import net.minecraft.entity.player.InventoryPlayer;
import net.minecraft.inventory.*;
import net.minecraft.item.ItemStack;
import net.minecraft.network.play.server.SPacketSetSlot;
import net.minecraft.util.NonNullList;
import net.minecraft.util.math.BlockPos;
import net.minecraft.world.World;
Expand Down Expand Up @@ -83,14 +81,6 @@ public void updateOldMatrix(List<ItemStack> matrix) {
}
}

@Override
@Unique
public void clearResult() {
craftResult.clear();
oldMatrix = NonNullList.withSize(9, ItemStack.EMPTY);
((EntityPlayerMP) player).connection.sendPacket(new SPacketSetSlot(this.windowId, 0, ItemStack.EMPTY));
}

@Override
@Unique
public void addSlot(Slot slot) {
Expand Down

0 comments on commit 4451b78

Please sign in to comment.