Skip to content

Commit

Permalink
Merge pull request #91 from GTNewHorizons/master
Browse files Browse the repository at this point in the history
merge master
  • Loading branch information
Dream-Master authored Feb 20, 2023
2 parents 9761008 + 2576369 commit 0e774f4
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,9 @@ public void getBoxes(final IPartCollisionHelper bch) {

@Override
public void onNeighborChanged() {
BlockPos neighbor = new BlockPos(this.getTile()).getOffSet(this.getSide());
TileEntity tile = this.getTile();
if (tile == null || this.getProxy() == null || !this.getProxy().isActive()) return;
BlockPos neighbor = new BlockPos(tile).getOffSet(this.getSide());
final TileEntity te = neighbor.getTileEntity();
// In case the TE was destroyed, we have to do a full reset immediately.
if (te instanceof TileCableBus) {
Expand Down Expand Up @@ -288,6 +290,7 @@ public void onNeighborChanged() {
} else {
this.resetCache(false);
}

}

@Override
Expand Down

0 comments on commit 0e774f4

Please sign in to comment.