Skip to content

Commit

Permalink
fix npe
Browse files Browse the repository at this point in the history
  • Loading branch information
YoungOnionMC committed Dec 31, 2024
1 parent b921f70 commit ce64554
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ private void onRotorInventoryChanged() {

@Override
public boolean hasRotor() {
return rotorColor != 0;
return inventory.getStackInSlot(0) != ItemStack.EMPTY;
}

protected void updateRotorSubscription() {
Expand Down

0 comments on commit ce64554

Please sign in to comment.