fix: adding existing classes to the patchers cache

This commit is contained in:
oSumAtrIX 2022-04-11 03:52:04 +02:00
parent b892729332
commit 9659a61c5c
No known key found for this signature in database
GPG key ID: A9B3094ACDB604B4

View file

@ -48,6 +48,8 @@ class Patcher(
// TODO: Use logger and warn about duplicate classes
if (throwOnDuplicates)
throw Exception("Class ${classDef.type} has already been added to the patcher.")
continue
}
cache.classes.add(classDef)
}