diff --git a/asm/src/main/java/dev/openrs2/asm/Library.java b/asm/src/main/java/dev/openrs2/asm/Library.java index b957f92348..b6bde2d244 100644 --- a/asm/src/main/java/dev/openrs2/asm/Library.java +++ b/asm/src/main/java/dev/openrs2/asm/Library.java @@ -70,6 +70,14 @@ public final class Library implements Iterable { /* empty */ } + public Library(Library library) { + for (var clazz : library.classes.values()) { + var copy = new ClassNode(); + clazz.accept(copy); + add(copy); + } + } + public boolean contains(String name) { return classes.containsKey(name); }