Skip to content
This repository has been archived by the owner on Nov 18, 2023. It is now read-only.

Commit

Permalink
Fix not being able to remove pipes without network
Browse files Browse the repository at this point in the history
  • Loading branch information
raoulvdberge committed Apr 5, 2020
1 parent b0153bc commit 7280197
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
# Refined Pipes Changelog

## 0.3
Note: Due to fluid networks now being split up by their tier, all fluid pipes from version 0.2.1 and earlier are incompatible and won't be functioning. This can be fixed by breaking and replacing all the fluid pipes in a network.

- Implemented pick block on attachments (raoulvdberge)
- Improved performance of calculating pipe shapes (raoulvdberge)
- Added energy pipes (raoulvdberge)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ public void removePipe(BlockPos pos) {
}

if (pipe.getNetwork() == null) {
throw new RuntimeException("Pipe has no network");
LOGGER.warn("Removed pipe at {} has no associated network", pipe.getPos());
}

pipes.remove(pipe.getPos());
Expand All @@ -153,7 +153,9 @@ public void removePipe(BlockPos pos) {

markDirty();

splitNetworks(pipe);
if (pipe.getNetwork() != null) {
splitNetworks(pipe);
}
}

private void splitNetworks(Pipe originPipe) {
Expand Down

0 comments on commit 7280197

Please sign in to comment.