diff --git a/build.gradle b/build.gradle index 7c16ad6f..bb12e358 100644 --- a/build.gradle +++ b/build.gradle @@ -1,7 +1,6 @@ // For those who want the bleeding edge buildscript { repositories { - jcenter() mavenCentral() maven { name = "forge" diff --git a/gradle/wrapper/gradle-wrapper.properties b/gradle/wrapper/gradle-wrapper.properties index 7b643203..f16d2666 100644 --- a/gradle/wrapper/gradle-wrapper.properties +++ b/gradle/wrapper/gradle-wrapper.properties @@ -2,4 +2,4 @@ distributionBase=GRADLE_USER_HOME distributionPath=wrapper/dists zipStoreBase=GRADLE_USER_HOME zipStorePath=wrapper/dists -distributionUrl=https\://services.gradle.org/distributions/gradle-3.1-bin.zip +distributionUrl=https\://services.gradle.org/distributions/gradle-4.1-bin.zip diff --git a/src/main/java/mcjty/theoneprobe/network/ThrowableIdentity.java b/src/main/java/mcjty/theoneprobe/network/ThrowableIdentity.java index 05c7c049..73966df1 100644 --- a/src/main/java/mcjty/theoneprobe/network/ThrowableIdentity.java +++ b/src/main/java/mcjty/theoneprobe/network/ThrowableIdentity.java @@ -17,7 +17,7 @@ public static void registerThrowable(Throwable e) { if (catchedThrowables.containsKey(identity)) { long lasttime = catchedThrowables.get(identity); if (curtime < lasttime + ConfigSetup.loggingThrowableTimeout) { - // If this exception occured less then some time ago we don't report it. + // If this exception occurred less then some time ago we don't report it. return; } } diff --git a/src/main/java/mcjty/theoneprobe/rendering/OverlayRenderer.java b/src/main/java/mcjty/theoneprobe/rendering/OverlayRenderer.java index 2d9dddf9..6565c65a 100644 --- a/src/main/java/mcjty/theoneprobe/rendering/OverlayRenderer.java +++ b/src/main/java/mcjty/theoneprobe/rendering/OverlayRenderer.java @@ -32,6 +32,8 @@ import net.minecraft.world.World; import org.apache.commons.lang3.tuple.Pair; import org.lwjgl.opengl.GL11; +import net.minecraftforge.fml.relauncher.Side; +import net.minecraftforge.fml.relauncher.SideOnly; import javax.annotation.Nullable; import java.util.HashMap; @@ -39,7 +41,7 @@ import java.util.UUID; import static mcjty.theoneprobe.api.TextStyleClass.ERROR; - +@SideOnly(Side.CLIENT) public class OverlayRenderer { private static Map, Pair> cachedInfo = new HashMap<>();