File tree Expand file tree Collapse file tree
src/main/java/de/oceanlabs/mcp/mcinjector Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -370,12 +370,13 @@ public void saveMap(String mapFile) throws IOException
370370 }
371371 }
372372
373- public String getMarker (String cls )
373+ public String getMarker (String cls ){ return getMarker (cls , true ); }
374+ public String getMarker (String cls , boolean allowGen )
374375 {
375376 String marker = this .mappings .getProperty (cls );
376377 if (marker == null )
377378 {
378- if (!this .generate ) return null ;
379+ if (!this .generate || ! allowGen ) return null ;
379380 marker = String .format ("CL_%08d" , this .classIDIndex ++);
380381 }
381382 outMappings .put (cls , marker );
Original file line number Diff line number Diff line change @@ -48,7 +48,7 @@ public void visitEnd() {
4848 String suffix = null ;
4949 if (isInMethod )
5050 {
51- String tmp = mci .getMarker (className );
51+ String tmp = mci .getMarker (className , false );
5252 if (tmp != null ) {
5353 tmp = tmp .replace ("CL_" , "" );
5454 while (tmp .charAt (0 ) == '0' )
You can’t perform that action at this time.
0 commit comments