Skip to content

Commit

Permalink
Check if stuff is null before invalidating stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
Buuz135 committed Jan 29, 2021
1 parent 8fcb216 commit 1270d88
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -356,8 +356,8 @@ public IWorldPosCallable getWorldPosCallable() {
@Override
public void invalidateCaps() {
super.invalidateCaps();
this.multiInventoryComponent.getLazyOptionals().forEach(LazyOptional::invalidate);
this.multiTankComponent.getLazyOptionals().forEach(LazyOptional::invalidate);
if (this.multiInventoryComponent != null) this.multiInventoryComponent.getLazyOptionals().forEach(LazyOptional::invalidate);
if (this.multiTankComponent != null) this.multiTankComponent.getLazyOptionals().forEach(LazyOptional::invalidate);
}

public boolean canInteract() {
Expand Down

0 comments on commit 1270d88

Please sign in to comment.