fix baritone in oresim and remove autoez

This commit is contained in:
C10udburst
2022-03-06 15:04:07 +01:00
parent aeb0964da1
commit aae6d16899
5 changed files with 20 additions and 182 deletions

View File

@@ -25,7 +25,6 @@ import net.minecraft.util.math.Direction;
import net.minecraft.util.math.MathHelper;
import net.minecraft.util.math.Vec3d;
import net.minecraft.util.registry.Registry;
import net.minecraft.util.registry.RegistryKey;
import net.minecraft.world.Heightmap;
import net.minecraft.world.chunk.ChunkStatus;
import net.minecraft.world.gen.random.ChunkRandom;
@@ -71,7 +70,7 @@ public class OreSim extends Module {
.build()
);
public final Setting<Boolean> baritone = sgGeneral.add(new BoolSetting.Builder()
private final Setting<Boolean> baritone = sgGeneral.add(new BoolSetting.Builder()
.name("baritone")
.description("Set baritone ore positions to the simulated ones.")
.defaultValue(false)
@@ -84,6 +83,10 @@ public class OreSim extends Module {
Ore.oreSettings.forEach(sgOres::add);
}
public boolean baritone() {
return isActive() && baritone.get();
}
@EventHandler
private void onRender(Render3DEvent event) {
if (mc.player == null || oreConfig == null) {