Skip to content

Commit

Permalink
attempt to prevent null for mekanism#6856
Browse files Browse the repository at this point in the history
  • Loading branch information
thiakil committed Jan 9, 2021
1 parent 3b80bdf commit a63277f
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -739,7 +739,8 @@ public void parseUpgradeData(@Nonnull IUpgradeData data) {
@Override
public Direction getDirection() {
if (isDirectional()) {
return Attribute.getFacing(getBlockState());
Direction facing = Attribute.getFacing(getBlockState());
return facing != null ? facing : Direction.NORTH;
}
//TODO: Remove, give it some better default, or allow it to be null
return Direction.NORTH;
Expand Down

0 comments on commit a63277f

Please sign in to comment.