Skip to content

Commit d6a5f4d

Browse files
committed
Only fix duplicate IDs when generating.
1 parent 32fb2fc commit d6a5f4d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ public void loadMap(String mapFile) throws IOException
107107
{
108108
mapReader = new FileReader(mapFile);
109109
this.mappings.load(mapReader);
110-
if (initIndex == 0)
110+
if (initIndex == 0 && generate)
111111
{
112112
Map<Integer, String> usedIds = new HashMap<Integer, String>();
113113
Iterator<Object> itr = this.mappings.keySet().iterator();

0 commit comments

Comments
 (0)