Skip to content

Commit

Permalink
Fix crash when invalidating invalid network elements
Browse files Browse the repository at this point in the history
This could occur when using AE2's Spatial IO.

Closes #1410
  • Loading branch information
rubensworks committed Oct 24, 2024
1 parent f61d6a0 commit 4ffd6a0
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ public IPartContainer getPartContainer() {
}

public Optional<IPartContainer> getPartContainerOptional() {
return PartHelpers.getPartContainer(getCenterPos(getTarget()), getTarget().getCenter().getSide());
return PartHelpers.getPartContainer(this.center.getPos(), this.center.getSide());
}

@Override
Expand Down

0 comments on commit 4ffd6a0

Please sign in to comment.