aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThatGravyBoat <thatgravyboat@gmail.com>2021-07-06 17:33:02 -0230
committerGitHub <noreply@github.com>2021-07-06 17:33:02 -0230
commitb551a28a0ba8f10b0e756a9f3e57621b2fb6020d (patch)
tree0b2f6d3462eec5cc13e38f2771a89c2c6f86d9a3
parent6d8e1e5659f64a4f9ba86d6ab5bbc8e688faf22a (diff)
parent4e9dd2b26625a5129bfcf41d8f7dd7e6fdab5a2d (diff)
downloadSkyblockHud-Death-Defied-b551a28a0ba8f10b0e756a9f3e57621b2fb6020d.tar.gz
SkyblockHud-Death-Defied-b551a28a0ba8f10b0e756a9f3e57621b2fb6020d.tar.bz2
SkyblockHud-Death-Defied-b551a28a0ba8f10b0e756a9f3e57621b2fb6020d.zip
Merge pull request #1 from ThatGravyBoat/tyman
-rw-r--r--.github/workflows/build.yml42
-rw-r--r--build.gradle2
-rw-r--r--src/main/java/com/thatgravyboat/skyblockhud/handlers/MapHandler.java2
3 files changed, 43 insertions, 3 deletions
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
new file mode 100644
index 0000000..21ab056
--- /dev/null
+++ b/.github/workflows/build.yml
@@ -0,0 +1,42 @@
+name: Build
+
+on:
+ push:
+ branches:
+ - '*'
+ paths-ignore:
+ - '.gitignore'
+ pull_request:
+ branches:
+ - '*'
+ paths-ignore:
+ - '.gitignore'
+ workflow_dispatch:
+jobs:
+ build:
+
+ runs-on: ubuntu-latest
+
+ steps:
+ - uses: actions/checkout@v2
+ - name: Set up JDK 1.8
+ uses: actions/setup-java@v1
+ with:
+ java-version: 1.8
+ - uses: actions/cache@v2
+ with:
+ path: |
+ ~/.gradle/caches
+ ~/.gradle/wrapper
+ key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }}
+ restore-keys: |
+ ${{ runner.os }}-gradle-
+ - name: Grant execute permission for gradlew
+ run: chmod +x gradlew
+ - name: Build with Gradle
+ run: ./gradlew build
+ - uses: actions/upload-artifact@v2
+ with:
+ path: build/libs/*.jar
+ - name: Stop gradle daemons
+ run: ./gradlew --stop \ No newline at end of file
diff --git a/build.gradle b/build.gradle
index 5c773c5..7ec17f2 100644
--- a/build.gradle
+++ b/build.gradle
@@ -1,6 +1,5 @@
buildscript {
repositories {
- jcenter()
maven {
name = "jitpack"
url = "https://jitpack.io/"
@@ -35,7 +34,6 @@ minecraft {
}
repositories {
- jcenter()
maven { url 'https://repo.spongepowered.org/maven/' }
flatDir {
dirs 'deps'
diff --git a/src/main/java/com/thatgravyboat/skyblockhud/handlers/MapHandler.java b/src/main/java/com/thatgravyboat/skyblockhud/handlers/MapHandler.java
index d2946ef..eaed920 100644
--- a/src/main/java/com/thatgravyboat/skyblockhud/handlers/MapHandler.java
+++ b/src/main/java/com/thatgravyboat/skyblockhud/handlers/MapHandler.java
@@ -139,7 +139,7 @@ public class MapHandler {
Utils.drawStringCenteredScaled(keyCode, mc.fontRendererObj, pos.getAbsX(event.resolution, 64) + 58,pos.getAbsY(event.resolution, 72) + 66, false, 6,0xFFFFFF);
BlockPos playerPos = mc.thePlayer.getPosition();
String position = String.format("%d/%d/%d", playerPos.getX(), playerPos.getY(), playerPos.getZ());
- Utils.drawStringCenteredScaled(position, mc.fontRendererObj, pos.getAbsX(event.resolution, 64) + 30,pos.getAbsY(event.resolution, 72) + 66, false, 36,0xFFFFFF);
+ Utils.drawStringCenteredScaled(position, mc.fontRendererObj, pos.getAbsX(event.resolution, 64) + 29,pos.getAbsY(event.resolution, 72) + 66, false, 36,0xFFFFFF);
GlStateManager.color(1.0f,1.0f, 1.0f,1.0f);
}
}