Skip to content

Commit

Permalink
Fixes #40
Browse files Browse the repository at this point in the history
  • Loading branch information
Reispfannenfresser authored and piegamesde committed Nov 9, 2021
1 parent 27905fa commit 40f5a10
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -1034,7 +1034,7 @@ public static Set<Pin> convertStatic(LevelMetadata pin, ScheduledExecutorService
/* All banner pins of the maps */
pins.addAll(pin.getMaps().map(List::stream).orElse(Stream.empty())
.flatMap(map -> map.getBanners().map(List::stream).orElse(Stream.empty()))
.map(banner -> new Pin(new Vector2d(banner.getPosition().x(), banner.getPosition().y()), PinType.MAP_BANNER, viewport))
.map(banner -> new Pin(new Vector2d(banner.getPosition().x(), banner.getPosition().z()), PinType.MAP_BANNER, viewport))
.collect(Collectors.toList()));

pin.getWorldSpawn().map(spawn -> new WorldSpawnPin(spawn.getSpawnpoint(), viewport)).ifPresent(pins::add);
Expand Down

0 comments on commit 40f5a10

Please sign in to comment.