Credits are cool

This commit is contained in:
StormyBytes
2021-06-06 15:21:14 +07:00
parent 6f4b663196
commit e850a5a66b
3 changed files with 75 additions and 2 deletions

View File

@@ -104,7 +104,6 @@ public class Painter extends Module {
// Find spots
for (BlockPos blockPos : WorldUtils.getSphere(mc.player.getBlockPos(), range.get(), range.get())) {
if (shouldPlace(blockPos, block.get())) positions.add(blockPos);
}
// Place
@@ -117,7 +116,7 @@ public class Painter extends Module {
}
private int findSlot(Block block) {
return InvUtils.findItemInHotbar(itemStack -> this.block.get() == block);
return InvUtils.findItemInHotbar(itemStack -> block == Block.getBlockFromItem(itemStack.getItem()));
}
private boolean shouldPlace(BlockPos blockPos, Block useBlock) {