|
1 | 1 | package nekiplay.meteorplus.mixin.meteorclient.modules;
|
2 | 2 |
|
| 3 | +import it.unimi.dsi.fastutil.ints.Int2ObjectMap; |
3 | 4 | import meteordevelopment.meteorclient.events.render.Render2DEvent;
|
4 | 5 | import meteordevelopment.meteorclient.mixin.ClientPlayerInteractionManagerAccessor;
|
5 | 6 | import meteordevelopment.meteorclient.mixin.WorldRendererAccessor;
|
|
18 | 19 | import meteordevelopment.orbit.EventHandler;
|
19 | 20 | import nekiplay.meteorplus.MeteorPlusAddon;
|
20 | 21 | import net.minecraft.block.BlockState;
|
21 |
| -import net.minecraft.entity.player.BlockBreakingInfo; |
| 22 | +import net.minecraft.client.render.BlockBreakingInfo; |
22 | 23 | import net.minecraft.util.math.BlockPos;
|
23 | 24 | import net.minecraft.util.math.Box;
|
24 | 25 | import net.minecraft.util.shape.VoxelShape;
|
25 | 26 | import org.joml.Vector3d;
|
26 | 27 | import org.spongepowered.asm.mixin.Mixin;
|
27 | 28 | import org.spongepowered.asm.mixin.Unique;
|
28 | 29 | import java.util.List;
|
29 |
| -import java.util.Map; |
30 | 30 |
|
31 | 31 | @Mixin(BreakIndicators.class)
|
32 | 32 | public class BreakIndicatorsMixin extends Module {
|
@@ -61,15 +61,15 @@ public class BreakIndicatorsMixin extends Module {
|
61 | 61 | );
|
62 | 62 |
|
63 | 63 |
|
64 |
| - public BreakIndicatorsMixin(Category category, String name, String description, String... aliases) { |
65 |
| - super(category, name, description, aliases); |
| 64 | + public BreakIndicatorsMixin(Category category, String name, String description) { |
| 65 | + super(category, name, description); |
66 | 66 | }
|
67 | 67 |
|
68 | 68 | @Unique
|
69 | 69 | @EventHandler
|
70 | 70 | private void on2DRender(Render2DEvent event) {
|
71 | 71 |
|
72 |
| - Map<Integer, BlockBreakingInfo> blocks = ((WorldRendererAccessor) mc.worldRenderer).getBlockBreakingInfos(); |
| 72 | + Int2ObjectMap<BlockBreakingInfo> blocks = ((WorldRendererAccessor) mc.worldRenderer).getBlockBreakingInfos(); |
73 | 73 |
|
74 | 74 | float ownBreakingStage = ((ClientPlayerInteractionManagerAccessor) mc.interactionManager).getBreakingProgress();
|
75 | 75 | BlockPos ownBreakingPos = ((ClientPlayerInteractionManagerAccessor) mc.interactionManager).getCurrentBreakingBlockPos();
|
|
0 commit comments