mirror of
https://github.com/MinecraftForge/MinecraftForge.git
synced 2026-11-22 05:02:18 +00:00
Created a CreativeModeTabEvent to register creative mode tabs and populate entries per tab Moved datapack registries to DataPackRegistryEvent.NewRegistry event instead of tying them to ForgeRegistry Made it easier for mods to datagen datapack builtin entries with DatapackBuiltinEntriesProvider Provided access to lookupProvider for datagen Updated dependencies to match versions used by vanilla and update JarJar to 0.3.18 Added a test mod for the new CreativeModeTabEvent Throws better error message for Forge registries in tag datagen Deleted ForgeRegistryTagsProvider Updated ClientChatReceivedEvent and ServerChatEvent for Mojang changes Added patches for both sign related methods in ModelLayers Changed RegisterShadersEvent to use ResourceProvider Migrated old Mojang math types to JOML Co-authored-by: Marc Hermans <[email protected]> Co-authored-by: LexManos <[email protected]> Co-authored-by: sciwhiz12 <[email protected]> Co-authored-by: coehlrich <[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_183988_() {
|
|
return f_137443_;
|
|
}
|
|
@@ -242,7 +_,7 @@
|
|
try {
|
|
type = DataFixers.m_14512_().getSchema(DataFixUtils.makeKey(SharedConstants.m_183709_().getWorldVersion())).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;
|
|
}
|