Skip to content

Commit

Permalink
Revert "try to fix #3"
Browse files Browse the repository at this point in the history
This reverts commit e1a11e1.
  • Loading branch information
HappyRespawnanchor committed Nov 12, 2024
1 parent 39c1363 commit 7c0bdd1
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 110 deletions.

This file was deleted.

1 change: 0 additions & 1 deletion common/src/main/resources/ayame-paperdoll.mixins.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
"compatibilityLevel": "JAVA_21",
"minVersion": "0.8",
"client": [
"hook.InGameHudMixin",
"patch.ImmediateMixin",
"retexture.AbstractButtonMixin",
"retexture.AbstractSelectionListMixin",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,5 +43,6 @@ public void onInitializeClient() {
EventHandler.keyPressed()
);

HudRenderCallback.EVENT.register((EventHandler::renderPaperDoll));
}
}
}
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
org.gradle.jvmargs=-Xmx2G
org.gradle.parallel=true
# Mod properties
mod_version=4.0.2
mod_version=4.0.1
maven_group=org.ayamemc.ayamepaperdoll
archives_name=ayame-paperdoll
enabled_platforms=fabric,neoforge
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ public AyamePaperDollNeoForge(IEventBus modBus) {

modBus.addListener(AyamePaperDollNeoForge::registerKeyMapping);

NeoForge.EVENT_BUS.addListener(AyamePaperDollNeoForge::renderPaperDoll);
NeoForge.EVENT_BUS.addListener(AyamePaperDollNeoForge::onClientTick);

ModLoadingContext.get().registerExtensionPoint(
Expand All @@ -56,6 +57,12 @@ public AyamePaperDollNeoForge(IEventBus modBus) {

}

private static void renderPaperDoll(RenderGuiEvent.Post event) {
final GuiGraphics guiGraphics = event.getGuiGraphics();
final DeltaTracker partialTick = event.getPartialTick();
EventHandler.renderPaperDoll(guiGraphics, partialTick);
}

private static void registerKeyMapping(RegisterKeyMappingsEvent event) {
event.register(AyamePaperDoll.SHOW_PAPERDOLL_KEY);
event.register(AyamePaperDoll.OPEN_CONFIG_GUI);
Expand All @@ -64,4 +71,4 @@ private static void registerKeyMapping(RegisterKeyMappingsEvent event) {
private static void onClientTick(ClientTickEvent.Post event) {
EventHandler.keyPressed();
}
}
}

0 comments on commit 7c0bdd1

Please sign in to comment.