Skip to content

Commit 20df4c8

Browse files
committed
fixed premade useSrg methods
1 parent 8dd9745 commit 20df4c8

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

src/main/java/net/minecraftforge/gradle/common/BasePlugin.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -767,17 +767,17 @@ public DelayedFile load(String key)
767767
}
768768
});
769769

770-
protected DelayedString delayedString(String path)
770+
public DelayedString delayedString(String path)
771771
{
772772
return stringCache.getUnchecked(path);
773773
}
774774

775-
protected DelayedFile delayedFile(String path)
775+
public DelayedFile delayedFile(String path)
776776
{
777777
return fileCache.getUnchecked(path);
778778
}
779779

780-
protected DelayedFileTree delayedTree(String path)
780+
public DelayedFileTree delayedTree(String path)
781781
{
782782
return new DelayedFileTree(project, replacerCache.getUnchecked(path));
783783
}

src/main/java/net/minecraftforge/gradle/user/ReobfTaskFactory.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -199,12 +199,12 @@ public void extraFiles(Object... o)
199199

200200
public void useSrgSrg()
201201
{
202-
reobf.setPrimarySrg(Constants.SRG_MCP_TO_SRG);
202+
reobf.setPrimarySrg(plugin.delayedFile(Constants.SRG_MCP_TO_SRG));
203203
}
204204

205205
public void useNotchSrg()
206206
{
207-
reobf.setPrimarySrg(Constants.SRG_MCP_TO_NOTCH);
207+
reobf.setPrimarySrg(plugin.delayedFile(Constants.SRG_MCP_TO_NOTCH));
208208
}
209209
}
210210
}

0 commit comments

Comments
 (0)