Skip to content

Commit d5993f5

Browse files
committed
Process com/mojang files as well.
1 parent 3690b9c commit d5993f5

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/main/java/de/oceanlabs/mcp/mcinjector/MCInjectorImpl.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,9 @@ private void processJar(Path inFile, Path outFile) throws IOException
110110

111111
String entryName = entry.getName();
112112

113-
if (entryName.endsWith(".class") && entryName.startsWith("net/minecraft/") )
113+
boolean mojang = entryName.startsWith("net/minecraft/") || entryName.startsWith("com/mojang/");
114+
115+
if (entryName.endsWith(".class") && mojang) //TODO: Remove this hardcoding? SRG input? process all?
114116
{
115117
MCInjector.LOG.log(Level.INFO, "Processing " + entryName);
116118

0 commit comments

Comments
 (0)