Skip to content

Commit

Permalink
Fix NPE from PlayerLimitation buildFilter
Browse files Browse the repository at this point in the history
  • Loading branch information
Ste3et committed Jun 24, 2023
1 parent a9b7953 commit 078c234
Show file tree
Hide file tree
Showing 11 changed files with 5 additions and 1 deletion.
Binary file modified .gradle/7.2/executionHistory/executionHistory.bin
Binary file not shown.
Binary file modified .gradle/7.2/executionHistory/executionHistory.lock
Binary file not shown.
Binary file modified .gradle/7.2/fileHashes/fileHashes.bin
Binary file not shown.
Binary file modified .gradle/7.2/fileHashes/fileHashes.lock
Binary file not shown.
Binary file modified .gradle/7.2/fileHashes/resourceHashesCache.bin
Binary file not shown.
Binary file modified .gradle/buildOutputCleanup/buildOutputCleanup.lock
Binary file not shown.
Binary file modified .gradle/checksums/checksums.lock
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,6 @@ public void updateConfig(Project project) {

@Override
public Predicate<ObjectID> buildFilter(Location location, Project project, Player player) {
return objectID -> objectID.getProjectOBJ().equals(project) && objectID.getUUID().equals(player.getUniqueId());
return objectID -> objectID.hasProjectOBJ() && objectID.getProjectOBJ().equals(project) && objectID.getUUID().equals(player.getUniqueId());
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,10 @@ public void setID(String s) {
public String getProject() {
return this.Project;
}

public boolean hasProjectOBJ() {
return Objects.nonNull(this.getProjectOBJ());
}

public Project getProjectOBJ() {
return FurnitureManager.getInstance().getProject(this.Project);
Expand Down
Binary file modified buildSrc/.gradle/7.2/executionHistory/executionHistory.lock
Binary file not shown.
Binary file modified buildSrc/.gradle/buildOutputCleanup/buildOutputCleanup.lock
Binary file not shown.

0 comments on commit 078c234

Please sign in to comment.