mirror of
https://github.com/MinecraftForge/MinecraftForge.git
synced 2026-11-21 04:32:15 +00:00
Properly move `ServerStatusPing` to codec Reimplement custom display contexts Co-authored-by: Matyrobbrt <[email protected]> Co-authored-by: coehlrich <[email protected]> Signed-off-by: SizableShrimp <[email protected]>
24 lines
1.2 KiB
Diff
24 lines
1.2 KiB
Diff
--- a/net/minecraft/Util.java
|
|
+++ b/net/minecraft/Util.java
|
|
@@ -170,6 +_,11 @@
|
|
return 255;
|
|
}
|
|
|
|
+ // We add these inner classes to compensate for Mojang's missing inner classes and shift the anonymous class index.
|
|
+ // This allows us to obfuscate subsequent anonymous inner classes correctly.
|
|
+ @SuppressWarnings("unused") private static java.util.function.LongSupplier INNER_CLASS_SHIFT1 = new java.util.function.LongSupplier() { public long getAsLong() { return 0; } };
|
|
+ @SuppressWarnings("unused") private static java.util.function.LongSupplier INNER_CLASS_SHIFT2 = new java.util.function.LongSupplier() { public long getAsLong() { return 0; } };
|
|
+
|
|
public static ExecutorService m_183991_() {
|
|
return f_137444_;
|
|
}
|
|
@@ -238,7 +_,7 @@
|
|
try {
|
|
type = DataFixers.m_14512_().getSchema(DataFixUtils.makeKey(SharedConstants.m_183709_().m_183476_().m_193006_())).getChoiceType(p_137552_, p_137553_);
|
|
} catch (IllegalArgumentException illegalargumentexception) {
|
|
- f_137446_.error("No data fixer registered for {}", (Object)p_137553_);
|
|
+ f_137446_.debug("No data fixer registered for {}", (Object)p_137553_);
|
|
if (SharedConstants.f_136183_) {
|
|
throw illegalargumentexception;
|
|
}
|