Skip to content

Commit

Permalink
Added null check to stream
Browse files Browse the repository at this point in the history
  • Loading branch information
thyraxx committed Sep 21, 2021
1 parent aab3fe5 commit 70bf0db
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/main/java/net/wurstclient/hacks/MobSpawnEspHack.java
Original file line number Diff line number Diff line change
Expand Up @@ -351,6 +351,7 @@ private void compileBuffer()
VertexFormats.POSITION_COLOR);

new ArrayList<>(red).stream()
.filter(Objects::nonNull)
.map(pos -> new BlockPos(pos.getX() - regionX, pos.getY(),
pos.getZ() - regionZ))
.forEach(pos -> {
Expand Down

0 comments on commit 70bf0db

Please sign in to comment.