Skip to content

Commit

Permalink
listener package fix
Browse files Browse the repository at this point in the history
  • Loading branch information
cyklon73 committed Mar 17, 2024
1 parent 1e2c769 commit 3f10d1c
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/main/java/de/cyklon/jevent/JEvent.java
Original file line number Diff line number Diff line change
Expand Up @@ -135,10 +135,7 @@ private ReflectPackage load(OfflinePackage pkg) {
private Set<ReflectPackage> getPackages(OfflinePackage pkg) {
Set<ReflectPackage> result = new HashSet<>();
if (!pkg.getDirectClasses().isEmpty()) result.add(pkg.load());
pkg.getPackages().stream()
.filter(p -> !p.getDirectClasses().isEmpty())
.map(OfflinePackage::load)
.forEach(this::getPackages);
pkg.getPackages().forEach(p -> result.addAll(getPackages(p)));
return result;
}

Expand Down

0 comments on commit 3f10d1c

Please sign in to comment.