Skip to content

Commit

Permalink
update compatibility with Raised mod
Browse files Browse the repository at this point in the history
  • Loading branch information
intact committed May 19, 2022
1 parent 3ec5790 commit 0ad63cb
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/main/java/chrono/mods/arrows/mixin/GuiMixin.java
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@
import org.spongepowered.asm.mixin.injection.Inject;
import org.spongepowered.asm.mixin.injection.callback.CallbackInfo;

import net.fabricmc.loader.api.FabricLoader;

import com.mojang.blaze3d.systems.RenderSystem;
import com.mojang.blaze3d.vertex.PoseStack;

Expand Down Expand Up @@ -100,7 +102,11 @@ private void renderSlot(int x, int y, float partialTick, Player player, ItemStac
x += 23;
}
}

int y = this.screenHeight - 23;
if (FabricLoader.getInstance().getObjectShare().get("raised:distance") instanceof Integer distance) {
y -= distance;
}

int oldBlitOffset = this.getBlitOffset();
this.setBlitOffset(-90);
Expand Down

0 comments on commit 0ad63cb

Please sign in to comment.