From 84a5196136be8b3300bdc554e81a677bb53eabc5 Mon Sep 17 00:00:00 2001 From: Richard Freimer Date: Fri, 20 Nov 2020 14:04:52 -0500 Subject: [PATCH] Fix math being incorrect for area the miner mines. Note: This does not mean we are supporting 1.12 in anyway shape or form, I just had an instance of it open in dev to more easily compare/validate some numbers and decided to apply a fix to something broken in a not even released commit just so that the 1.12 branch on github isn't *more* broken than the last released version we had made for 1.12 --- build.gradle | 14 +++++++------- .../common/tile/TileEntityDigitalMiner.java | 2 +- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/build.gradle b/build.gradle index 4f73a314d..587ff25cb 100644 --- a/build.gradle +++ b/build.gradle @@ -42,7 +42,7 @@ repositories { } maven { name 'prog' - url 'http://dvs1.progwml6.com/files/maven' + url 'https://dvs1.progwml6.com/files/maven' } maven { name 'tesla' @@ -54,11 +54,7 @@ repositories { } maven { name 'opencomputers' - url 'http://maven.cil.li/' - } - maven { - name 'hwyla' - url 'https://tehnut.info/maven' + url 'https://maven.cil.li/' } maven { name 'CoFH Maven' @@ -74,7 +70,7 @@ repositories { } maven { name 'ic2' - url 'http://maven.ic2.player.to' + url 'https://maven.ic2.player.to' } maven { name 'BlameJared - Crafttweaker' @@ -84,6 +80,10 @@ repositories { name 'thiakil' url 'https://maven.thiakil.com' } + maven { + name 'hwyla' + url 'https://maven.tehnut.info' + } } group = "mekanism" diff --git a/src/main/java/mekanism/common/tile/TileEntityDigitalMiner.java b/src/main/java/mekanism/common/tile/TileEntityDigitalMiner.java index f9c902e3d..c96ccb1fc 100644 --- a/src/main/java/mekanism/common/tile/TileEntityDigitalMiner.java +++ b/src/main/java/mekanism/common/tile/TileEntityDigitalMiner.java @@ -479,7 +479,7 @@ public class TileEntityDigitalMiner extends TileEntityElectricBlock implements I public void start() { if (searcher.state == State.IDLE) { - searcher.setChunkCache(new ChunkCache(getWorld(), getStartingCoord().getPos(), getStartingCoord().getPos().add(radius, maxY - minY, radius), 0)); + searcher.setChunkCache(new ChunkCache(getWorld(), getStartingCoord().getPos(), getStartingCoord().getPos().add(getDiameter(), maxY - minY + 1, getDiameter()), 0)); searcher.start(); } running = true;