File tree Expand file tree Collapse file tree 1 file changed +17
-18
lines changed
src/main/java/org/spongepowered/api/service/permission Expand file tree Collapse file tree 1 file changed +17
-18
lines changed Original file line number Diff line number Diff line change @@ -197,24 +197,23 @@ default Optional<? extends SubjectData> roleTemplate(final PluginContainer plugi
197197 return Collections .emptySet ();
198198 }
199199
200- return Collections .unmodifiableSet (globalSubj .get ()
201- .transientSubjectData ().parents (SubjectData .GLOBAL_CONTEXT ).stream ()
202- .map (SubjectReference ::resolve )
203- .map (CompletableFuture ::join )
204- .map (it -> {
205- final String [] name = it .identifier ().split (":" , 2 );
206- if (name .length < 2 ) {
207- return null ;
208- }
209-
210- final Optional <PluginContainer > container = Sponge .pluginManager ().plugin (name [0 ]);
211- if (!container .isPresent ()) {
212- return null ;
213- }
214-
215- return new AbstractMap .SimpleImmutableEntry <>(container .get (), it .transientSubjectData ());
216- }).filter (Objects ::nonNull )
217- .collect (Collectors .toSet ()));
200+ return globalSubj .get ()
201+ .transientSubjectData ().parents (SubjectData .GLOBAL_CONTEXT ).stream ()
202+ .map (SubjectReference ::resolve )
203+ .map (CompletableFuture ::join )
204+ .map (it -> {
205+ final String [] name = it .identifier ().split (":" , 2 );
206+ if (name .length < 2 ) {
207+ return null ;
208+ }
209+
210+ final Optional <PluginContainer > container = Sponge .pluginManager ().plugin (name [0 ]);
211+ if (!container .isPresent ()) {
212+ return null ;
213+ }
214+
215+ return new AbstractMap .SimpleImmutableEntry <>(container .get (), it .transientSubjectData ());
216+ }).filter (Objects ::nonNull ).collect (Collectors .toUnmodifiableSet ());
218217
219218 }
220219
You can’t perform that action at this time.
0 commit comments