File tree 2 files changed +4
-3
lines changed
src/main/java/de/oceanlabs/mcp/mcinjector
2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -370,12 +370,13 @@ public void saveMap(String mapFile) throws IOException
370
370
}
371
371
}
372
372
373
- public String getMarker (String cls )
373
+ public String getMarker (String cls ){ return getMarker (cls , true ); }
374
+ public String getMarker (String cls , boolean allowGen )
374
375
{
375
376
String marker = this .mappings .getProperty (cls );
376
377
if (marker == null )
377
378
{
378
- if (!this .generate ) return null ;
379
+ if (!this .generate || ! allowGen ) return null ;
379
380
marker = String .format ("CL_%08d" , this .classIDIndex ++);
380
381
}
381
382
outMappings .put (cls , marker );
Original file line number Diff line number Diff line change @@ -48,7 +48,7 @@ public void visitEnd() {
48
48
String suffix = null ;
49
49
if (isInMethod )
50
50
{
51
- String tmp = mci .getMarker (className );
51
+ String tmp = mci .getMarker (className , false );
52
52
if (tmp != null ) {
53
53
tmp = tmp .replace ("CL_" , "" );
54
54
while (tmp .charAt (0 ) == '0' )
You can’t perform that action at this time.
0 commit comments