mirror of
https://github.com/LegacyModdingMC/UniMixins.git
synced 2026-11-22 21:29:42 +00:00
Only generate class if it's not present
This commit is contained in:
1 parent
fe11aee64c
commit
fcd416e31b
1 file changed
+1
-1
+1
-1
@@ -22,7 +22,7 @@ public class LegacyGTNHMixinExtrasGenerator implements IClassTransformer {
|
||||
|
||||
@Override
|
||||
public byte[] transform(String name, String transformedName, byte[] basicClass) {
|
||||
if(name.startsWith("com.gtnewhorizon.mixinextras")) {
|
||||
if(basicClass == null && name.startsWith("com.gtnewhorizon.mixinextras")) {
|
||||
try {
|
||||
LOGGER.trace("Generating class " + name);
|
||||
byte[] bytes = Launch.classLoader.getClassBytes("data.gtnhmixinextras." + name);
|
||||
|
||||
Reference in new issue
Block a user