Skip to content
Original file line number Diff line number Diff line change
Expand Up @@ -547,7 +547,6 @@ private void initWorld() {
add(new EChestFarmer());
add(new EndermanLook());
add(new Flamethrower());
add(new HighwayBuilder());
add(new LiquidFiller());
add(new NoGhostBlocks());
add(new Nuker());
Expand All @@ -559,6 +558,7 @@ private void initWorld() {

if (BaritoneUtils.IS_AVAILABLE) {
add(new Excavator());
add(new HighwayBuilder());
add(new InfinityMiner());
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -89,25 +89,6 @@ private void onRender(Render3DEvent event) {
if (packetMine.get() && !Modules.get().get(PacketMine.class).blocks.isEmpty()) {
renderPacket(event, Modules.get().get(PacketMine.class).blocks);
}

HighwayBuilder b = Modules.get().get(HighwayBuilder.class);
if (!b.isActive()) return;

if (b.normalMining != null) {
VoxelShape voxelShape = b.normalMining.blockState.getShape(mc.level, b.normalMining.blockPos);
if (voxelShape.isEmpty()) return;

double normalised = Math.min(1, b.normalMining.progress());
renderBlock(event, voxelShape.bounds(), b.normalMining.blockPos, 1 - normalised, normalised);
}

if (b.packetMining != null) {
VoxelShape voxelShape = b.packetMining.blockState.getShape(mc.level, b.packetMining.blockPos);
if (voxelShape.isEmpty()) return;

double normalised = Math.min(1, b.packetMining.progress());
renderBlock(event, voxelShape.bounds(), b.packetMining.blockPos, 1 - normalised, normalised);
}
}

private void renderNormal(Render3DEvent event) {
Expand Down
Loading
Loading