getSlot() and found()

This commit is contained in:
StormyBytes
2021-06-07 21:21:58 +07:00
parent b21a0ee7f1
commit 48e19964f2
6 changed files with 11 additions and 11 deletions

View File

@@ -124,7 +124,7 @@ public class AutoTNT extends Module {
private void ignite(BlockPos pos, FindItemResult item) {
// Set slots
preSlot = mc.player.inventory.selectedSlot;
mc.player.inventory.selectedSlot = item.slot;
mc.player.inventory.selectedSlot = item.getSlot();
ActionResult result = mc.interactionManager.interactBlock(mc.player, mc.world, Hand.MAIN_HAND, new BlockHitResult(new Vec3d(pos.getX() + 0.5, pos.getY() + 0.5, pos.getZ() + 0.5), Direction.UP, pos, true));