Clean tests before running

This commit is contained in:
Anuken
2020-12-03 11:05:02 -05:00
parent db8d099fcc
commit 51b4078288
2 changed files with 2 additions and 2 deletions

View File

@ -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: |

View File

@ -255,7 +255,7 @@ public class Conveyor extends Block implements Autotiler{
}
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;
}