Multiblocks sometimes can't be broken because during removal, (#4469)

they update their own block-state to display the disconnected
state, effectively reversing their own removal. This occurs
because the cached block state in the tile entity base class is
outdated and doesn't reflect the removal.
This commit is contained in:
shartte
2020-07-17 22:35:49 +02:00
committed by GitHub
parent 8142eb90a6
commit e8b57c6dc5
2 changed files with 10 additions and 0 deletions
@@ -289,6 +289,11 @@ public class QuantumBridgeTileEntity extends AENetworkInvTileEntity implements I
}
public void breakCluster() {
// Since breaking the cluster will most likely also update the TE's state,
// it's essential that we're not working with outdated block-state information,
// since this particular TE's block might already have been removed (state=air)
updateContainingBlockInfo();
if (this.cluster != null) {
this.cluster.destroy();
}