Skip to content

Commit

Permalink
Fix grid nodes being corrupted under specific circumstances (spatial …
Browse files Browse the repository at this point in the history
…anchor + adjacent QNB)
  • Loading branch information
shartte committed Aug 24, 2024
1 parent b55bd4c commit b32a2d4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ if (ext.tag) {
// still support configuration caching.
project.version = providers.gradleProperty("version").orElse("").flatMap(version -> {
if (!version.isBlank()) {
return version;
return providers.provider { version }
}
return providers.of(ProjectVersionSource.class, spec -> {
spec.getParameters().getDefaultBranches().addAll("main", "neoforge/" + project.minecraft_version)
Expand Down
3 changes: 2 additions & 1 deletion src/main/java/appeng/me/GridNode.java
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,8 @@ void validateGrid() {

public Grid getInternalGrid() {
if (this.myGrid == null) {
this.myGrid = Grid.create(this);
Grid.create(this);
return Objects.requireNonNull(this.myGrid);
}

return this.myGrid;
Expand Down

0 comments on commit b32a2d4

Please sign in to comment.