mirror of
https://github.com/Anuken/Mindustry.git
synced 2025-07-31 23:19:43 +07:00
Clean tests before running
This commit is contained in:
2
.github/workflows/push.yml
vendored
2
.github/workflows/push.yml
vendored
@ -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: |
|
||||
|
@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user