ReachModule: Bug fixes

This commit is contained in:
noil 2021-01-05 15:24:47 -05:00
parent 532d3e48c2
commit 0497a9e9f2
1 changed files with 5 additions and 6 deletions

View File

@ -60,12 +60,11 @@ public final class ReachModule extends Module {
if (this.blocks.getValue()) {
this.currentBlockTrace = mc.player.rayTrace(this.distance.getValue(), event.getPartialTicks());
if (!this.highlight.getValue())
return;
if (this.blockHighlightModule != null && this.currentBlockTrace != null) {
if (this.blockHighlightModule.isEnabled()) {
this.blockHighlightModule.drawHighlight(this.currentBlockTrace, mc);
if (this.highlight.getValue()) {
if (this.blockHighlightModule != null && this.currentBlockTrace != null) {
if (this.blockHighlightModule.isEnabled()) {
this.blockHighlightModule.drawHighlight(this.currentBlockTrace, mc);
}
}
}
}