Skip to content

Commit

Permalink
Revert "[1.20.x] Fix patch conflicts introduced by neoforged#999 (neo…
Browse files Browse the repository at this point in the history
…forged#1057)"

This reverts commit 623cf3b.
  • Loading branch information
shartte committed Jun 7, 2024
1 parent a5c0363 commit 6cef56a
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
GlStateManager._vertexAttribPointer(p_167048_, p_167043_, p_167044_, false, p_167045_, p_167046_);
@@ -186,6 +_,10 @@
@OnlyIn(Dist.CLIENT)
interface SetupState {
public interface SetupState {
void setupBufferState(int p_167053_, int p_167054_, int p_167055_, long p_167056_, int p_167057_, int p_167058_);
+ }
+
Expand Down
13 changes: 6 additions & 7 deletions patches/net/minecraft/client/gui/Gui.java.patch
Original file line number Diff line number Diff line change
Expand Up @@ -379,19 +379,18 @@
+ this.layerManager.initModdedLayers();
+ }
+
public @OnlyIn(Dist.CLIENT)
- static enum HeartType {
+ static enum HeartType implements net.neoforged.neoforge.common.IExtensibleEnum {
@OnlyIn(Dist.CLIENT)
- public static enum HeartType {
+ public static enum HeartType implements net.neoforged.neoforge.common.IExtensibleEnum {
CONTAINER(
new ResourceLocation("hud/heart/container"),
new ResourceLocation("hud/heart/container_blinking"),
@@ -1407,7 +_,24 @@
@@ -1406,8 +_,23 @@
} else {
gui$hearttype = NORMAL;
}

+ // Neo: Allow mods to override the heart type with a custom one.
+ gui$hearttype = net.neoforged.neoforge.event.EventHooks.firePlayerHeartTypeEvent(p_168733_, gui$hearttype);
+
return gui$hearttype;
+ }
+
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,4 +47,4 @@
+ return com.google.common.collect.ImmutableList.copyOf(overrides);
}

public @OnlyIn(Dist.CLIENT)
@OnlyIn(Dist.CLIENT)

0 comments on commit 6cef56a

Please sign in to comment.