mirror of
https://github.com/Anuken/Mindustry.git
synced 2024-09-11 08:15:35 +03:00
What a horrible waste of time
This commit is contained in:
parent
0218e2ed2d
commit
60d3a51ebc
2
.github/workflows/deployment.yml
vendored
2
.github/workflows/deployment.yml
vendored
@ -17,8 +17,6 @@ jobs:
|
||||
java-version: 17
|
||||
- name: Set env
|
||||
run: echo "RELEASE_VERSION=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV
|
||||
- name: Publish package
|
||||
run: ./gradlew clean publish -PpackageVersion=${RELEASE_VERSION}
|
||||
- name: Add Arc release
|
||||
run: |
|
||||
git clone --depth=1 --branch=master https://github.com/Anuken/Arc ../Arc
|
||||
|
4
.github/workflows/push.yml
vendored
4
.github/workflows/push.yml
vendored
@ -33,9 +33,5 @@ jobs:
|
||||
git commit -m "Automatic bundle update"
|
||||
git push
|
||||
fi
|
||||
- name: Publish package
|
||||
run: ./gradlew clean publish -PpackageVersion=${GITHUB_SHA}
|
||||
env:
|
||||
PACKAGE_TOKEN: ${{ secrets.PACKAGE_TOKEN }}
|
||||
- name: Run unit tests
|
||||
run: ./gradlew clean cleanTest test --stacktrace
|
||||
|
17
build.gradle
17
build.gradle
@ -468,20 +468,9 @@ configure([":core", ":server"].collect{project(it)}){
|
||||
}
|
||||
|
||||
publishing{
|
||||
repositories{
|
||||
maven{
|
||||
name = "GitHubPackages"
|
||||
url = uri("https://maven.pkg.github.com/anuken/mindustry")
|
||||
credentials{
|
||||
username = project.findProperty("gpr.user") ?: "Anuken"
|
||||
password = project.findProperty("gpr.key") ?: System.getenv("PACKAGE_TOKEN")
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
publications {
|
||||
gpr(MavenPublication) {
|
||||
from(components.java)
|
||||
publications{
|
||||
maven(MavenPublication){
|
||||
from components.java
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -337,7 +337,7 @@ public class BlockIndexer{
|
||||
int size = breturnArray.size;
|
||||
for(int i = 0; i < size; i++){
|
||||
var b = items[i];
|
||||
if(b.within(x, y, range + b.hitSize()/2f)){
|
||||
if(b != null && b.within(x, y, range + b.hitSize()/2f)){
|
||||
cons.get(b);
|
||||
}
|
||||
items[i] = null;
|
||||
|
Loading…
Reference in New Issue
Block a user