From a53bca2e02e8bf96ac84aa91207d387bf69980f6 Mon Sep 17 00:00:00 2001 From: raoulvdberge Date: Mon, 30 Mar 2020 12:56:40 +0200 Subject: [PATCH] Update changelog --- CHANGELOG.md | 3 +++ .../raoulvdberge/refinedpipes/tile/FluidPipeTileEntity.java | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 6fb23a7..1e175b3 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,7 +1,10 @@ # Refined Pipes Changelog ## 0.2.1 +Note: Due to refactoring of the network architecture, pipes from version 0.2 and earlier are incompatible and won't be functioning. This can be fixed by breaking and replacing all the pipes in a network. + - Added ghost hitboxes when holding an attachment in hand (raoulvdberge) +- Refactored network architecture (raoulvdberge) ## 0.2 - Added fluid pipes (raoulvdberge) diff --git a/src/main/java/com/raoulvdberge/refinedpipes/tile/FluidPipeTileEntity.java b/src/main/java/com/raoulvdberge/refinedpipes/tile/FluidPipeTileEntity.java index 160aeec..971391a 100644 --- a/src/main/java/com/raoulvdberge/refinedpipes/tile/FluidPipeTileEntity.java +++ b/src/main/java/com/raoulvdberge/refinedpipes/tile/FluidPipeTileEntity.java @@ -54,7 +54,7 @@ public float updateAndGetRenderFullness(float partialTicks) { @Override public CompoundNBT writeUpdate(CompoundNBT tag) { Pipe pipe = NetworkManager.get(world).getPipe(pos); - if (pipe instanceof FluidPipe) { + if (pipe instanceof FluidPipe && pipe.getNetwork() != null) { tag.put("fluid", ((FluidNetwork) pipe.getNetwork()).getFluidTank().getFluid().writeToNBT(new CompoundNBT())); tag.putFloat("fullness", ((FluidPipe) pipe).getFullness()); }