diff --git a/build.properties b/build.properties index 1317590011..4a5fc80a4a 100644 --- a/build.properties +++ b/build.properties @@ -1,4 +1,4 @@ mc_version=1.12.2 forge_version=14.23.0.2544 mappings_version=snapshot_20171120 -mod_version=7.99.23-pre1 +mod_version=7.99.23 diff --git a/buildcraft_resources/changelog/7.99.23 b/buildcraft_resources/changelog/7.99.23 index e24581ed66..2f8f17b794 100644 --- a/buildcraft_resources/changelog/7.99.23 +++ b/buildcraft_resources/changelog/7.99.23 @@ -7,6 +7,7 @@ Improvements: Bug fixes: +* [#4345] Fixed a cache issue which caused pipes with wires on to disconnect randomly. * [#4359] Fixed a cache issue which caused items to disappear from transport pipes. * Made the pump a bit less likely to dupe fluids when sending them out to neighbouring blocks. * Fixed gui container and tile update packets not releasing some byte buffers properly diff --git a/common/buildcraft/lib/tile/TileBC_Neptune.java b/common/buildcraft/lib/tile/TileBC_Neptune.java index d2b7d23112..a26682f937 100644 --- a/common/buildcraft/lib/tile/TileBC_Neptune.java +++ b/common/buildcraft/lib/tile/TileBC_Neptune.java @@ -273,6 +273,27 @@ public void invalidate() { tileCache.invalidate(); } + @Override + public void validate() { + super.validate(); + chunkCache.invalidate(); + tileCache.invalidate(); + } + + @Override + public void onLoad() { + super.onLoad(); + chunkCache.invalidate(); + tileCache.invalidate(); + } + + @Override + public void onChunkUnload() { + super.onChunkUnload(); + chunkCache.invalidate(); + tileCache.invalidate(); + } + /** Called whenever {@link Block#getDrops(NonNullList, IBlockAccess, BlockPos, IBlockState, int)}, or * {@link #onRemove()} is called (by default). */ public void addDrops(NonNullList toDrop, int fortune) { @@ -315,7 +336,7 @@ public boolean onActivated(EntityPlayer player, EnumHand hand, EnumFacing facing } public void onNeighbourBlockChanged(Block block, BlockPos nehighbour) { - + tileCache.invalidate(); } @Override