Skip to content

Commit

Permalink
SignatureSign - improved reliability of dye-ink-wax combo.
Browse files Browse the repository at this point in the history
  • Loading branch information
0xTas committed Apr 4, 2024
1 parent 1a244f8 commit 7e733ee
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/main/java/dev/stardust/modules/SignatureSign.java
Original file line number Diff line number Diff line change
Expand Up @@ -855,11 +855,11 @@ private void interactSign(SignBlockEntity sbe, Item dye) {
for (int n = 0; n < mc.player.getInventory().main.size(); n++) {
ItemStack stack = mc.player.getInventory().getStack(n);
if (stack.getItem() == dye) {
if (current.getItem() instanceof SignItem) dyeSlot = n;
if (current.getItem() instanceof SignItem && current.getCount() > 1) dyeSlot = n;
if (n < 9) InvUtils.swap(n, true);
else InvUtils.move().from(n).to(mc.player.getInventory().selectedSlot);

timer = 5;
timer = 3;
return;
}
}
Expand Down Expand Up @@ -894,7 +894,7 @@ private void onTick(TickEvent.Pre event) {
if (dyeSlot < 9) InvUtils.swapBack();
else InvUtils.move().from(mc.player.getInventory().selectedSlot).to(dyeSlot);
dyeSlot = -1;
timer = 5;
timer = 3;
}
}

Expand Down

0 comments on commit 7e733ee

Please sign in to comment.