mirror of
https://github.com/GTNewHorizons/Postea.git
synced 2026-11-28 07:56:04 +00:00
Add support for multiple mods remapping the same item/block/tile entity. (#18)
This commit is contained in:
1 parent
2641e10174
commit
c59ec9bb36
36 files changed
+2904
-310
No files matched your search
@@ -3,6 +3,7 @@ package com.gtnewhorizons.postea.utility;
|
||||
import java.util.ArrayList;
|
||||
import java.util.Collections;
|
||||
|
||||
import net.minecraft.launchwrapper.Launch;
|
||||
import net.minecraft.nbt.NBTTagCompound;
|
||||
import net.minecraft.world.World;
|
||||
import net.minecraft.world.chunk.Chunk;
|
||||
@@ -30,6 +31,9 @@ public abstract class PosteaUtilities {
|
||||
}
|
||||
|
||||
public static int getModListHash() {
|
||||
// when in a dev env allow mutations to happen every time a chunk is loaded for testing purposes.
|
||||
final Object deobfEnv = Launch.blackboard != null ? Launch.blackboard.get("fml.deobfuscatedEnvironment") : null;
|
||||
if (deobfEnv != null && (boolean) deobfEnv) return -1;
|
||||
|
||||
// We iterate over every mod, get its version and put it into a giant list.
|
||||
// This is done so we can see if our mods have actually changed, if so, we
|
||||
|
||||
Reference in new issue
Block a user