feat(data-manipulation): reverse order of FIND_RESOURCE application to make more sense
This commit is contained in:
parent
43e3bed0b2
commit
10527ec2bb
|
@ -57,8 +57,8 @@ public class UserResourceEvents {
|
|||
public static final Event<FindResource> FIND_RESOURCE = EventFactory.createArrayBacked(FindResource.class,
|
||||
listeners -> (type, namespace, prefix, previous, pack) -> {
|
||||
ResourcePack.ResultConsumer lazy = previous;
|
||||
for (FindResource listener : listeners) {
|
||||
lazy = listener.findResources(type, namespace, prefix, lazy, pack);
|
||||
for (int i = listeners.length - 1; i >= 0; i--) {
|
||||
lazy = listeners[i].findResources(type, namespace, prefix, lazy, pack);
|
||||
}
|
||||
return lazy;
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue