Skip to content

Commit

Permalink
Clean tests before running
Browse files Browse the repository at this point in the history
  • Loading branch information
Anuken committed Dec 3, 2020
1 parent db8d099 commit 51b4078
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
with:
java-version: 14
- name: Run unit tests
run: ./gradlew test
run: ./gradlew clean cleanTest test
- name: Trigger BE build
if: ${{ github.repository == 'Anuken/Mindustry' }}
run: |
Expand Down
2 changes: 1 addition & 1 deletion core/src/mindustry/world/blocks/distribution/Conveyor.java
Original file line number Diff line number Diff line change
Expand Up @@ -255,7 +255,7 @@ public void updateTile(){
}

public boolean pass(Item item){
if(next != null && next.team == team && next.acceptItem(this, item)){
if(item != null && next != null && next.team == team && next.acceptItem(this, item)){
next.handleItem(this, item);
return true;
}
Expand Down

0 comments on commit 51b4078

Please sign in to comment.