Fixed #3633
This commit is contained in:
16
.github/workflows/deployment.yml
vendored
16
.github/workflows/deployment.yml
vendored
@@ -15,9 +15,11 @@ jobs:
|
|||||||
uses: actions/setup-java@v1
|
uses: actions/setup-java@v1
|
||||||
with:
|
with:
|
||||||
java-version: 14
|
java-version: 14
|
||||||
|
- name: Set env
|
||||||
|
run: echo "RELEASE_VERSION=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV
|
||||||
- name: Create artifacts
|
- name: Create artifacts
|
||||||
run: |
|
run: |
|
||||||
./gradlew desktop:dist server:dist core:javadoc -Pbuildversion=${GITHUB_REF:1}
|
./gradlew desktop:dist server:dist core:javadoc -Pbuildversion=${RELEASE_VERSION:1}
|
||||||
- name: Update docs
|
- name: Update docs
|
||||||
run: |
|
run: |
|
||||||
cd ../
|
cd ../
|
||||||
@@ -27,24 +29,24 @@ jobs:
|
|||||||
cp -a Mindustry/core/build/docs/javadoc/. docs/
|
cp -a Mindustry/core/build/docs/javadoc/. docs/
|
||||||
cd docs
|
cd docs
|
||||||
git add .
|
git add .
|
||||||
git commit -m "Update ${GITHUB_REF:1}"
|
git commit -m "Update ${RELEASE_VERSION:1}"
|
||||||
git push https://Anuken:${{ secrets.API_TOKEN_GITHUB }}@github.com/MindustryGame/docs
|
git push https://Anuken:${{ secrets.API_TOKEN_GITHUB }}@github.com/MindustryGame/docs
|
||||||
cd ../Mindustry
|
cd ../Mindustry
|
||||||
- name: Add Arc release
|
- name: Add Arc release
|
||||||
run: |
|
run: |
|
||||||
git clone --depth=1 --branch=master https://github.com/Anuken/Arc ../Arc
|
git clone --depth=1 --branch=master https://github.com/Anuken/Arc ../Arc
|
||||||
cd ../Arc
|
cd ../Arc
|
||||||
git tag ${GITHUB_REF}
|
git tag ${RELEASE_VERSION}
|
||||||
git push https://Anuken:${{ secrets.API_TOKEN_GITHUB }}@github.com/Anuken/Arc ${GITHUB_REF};
|
git push https://Anuken:${{ secrets.API_TOKEN_GITHUB }}@github.com/Anuken/Arc ${RELEASE_VERSION};
|
||||||
cd ../Mindustry
|
cd ../Mindustry
|
||||||
- name: Update F-Droid build string
|
- name: Update F-Droid build string
|
||||||
run: |
|
run: |
|
||||||
git clone --depth=1 --branch=master https://github.com/Anuken/MindustryBuilds ../MindustryBuilds
|
git clone --depth=1 --branch=master https://github.com/Anuken/MindustryBuilds ../MindustryBuilds
|
||||||
cd ../MindustryBuilds
|
cd ../MindustryBuilds
|
||||||
echo "Updating version to ${GITHUB_REF:1}"
|
echo "Updating version to ${RELEASE_VERSION:1}"
|
||||||
echo versionName=6-fdroid-${GITHUB_REF:1}$'\n'versionCode=${GITHUB_REF:1} > version_fdroid.txt
|
echo versionName=6-fdroid-${RELEASE_VERSION:1}$'\n'versionCode=${RELEASE_VERSION:1} > version_fdroid.txt
|
||||||
git add .
|
git add .
|
||||||
git commit -m "Updating to build ${GITHUB_REF:1}"
|
git commit -m "Updating to build ${RELEASE_VERSION:1}"
|
||||||
cd ../Mindustry
|
cd ../Mindustry
|
||||||
- name: Upload client artifacts
|
- name: Upload client artifacts
|
||||||
uses: svenstaro/upload-release-action@v2
|
uses: svenstaro/upload-release-action@v2
|
||||||
|
|||||||
@@ -135,8 +135,8 @@ public class Logic implements ApplicationListener{
|
|||||||
//convert all blocks to neutral, randomly killing them
|
//convert all blocks to neutral, randomly killing them
|
||||||
if(tile.isCenter() && tile.build != null && tile.build.team == state.rules.waveTeam){
|
if(tile.isCenter() && tile.build != null && tile.build.team == state.rules.waveTeam){
|
||||||
Building b = tile.build;
|
Building b = tile.build;
|
||||||
|
Call.setTeam(b, Team.derelict);
|
||||||
Time.run(Mathf.random(0f, 60f * 6f), () -> {
|
Time.run(Mathf.random(0f, 60f * 6f), () -> {
|
||||||
Call.setTeam(b, Team.derelict);
|
|
||||||
if(Mathf.chance(0.25)){
|
if(Mathf.chance(0.25)){
|
||||||
b.kill();
|
b.kill();
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -77,6 +77,8 @@ abstract class MinerComp implements Itemsc, Posc, Teamc, Rotc, Drawc{
|
|||||||
mineTimer = 0;
|
mineTimer = 0;
|
||||||
|
|
||||||
if(core != null && within(core, mineTransferRange) && core.acceptStack(item, 1, this) == 1 && offloadImmediately()){
|
if(core != null && within(core, mineTransferRange) && core.acceptStack(item, 1, this) == 1 && offloadImmediately()){
|
||||||
|
//add item to inventory before it is transferred
|
||||||
|
if(item() == item) addItem(item);
|
||||||
Call.transferItemTo(self(), item, 1,
|
Call.transferItemTo(self(), item, 1,
|
||||||
mineTile.worldx() + Mathf.range(tilesize / 2f),
|
mineTile.worldx() + Mathf.range(tilesize / 2f),
|
||||||
mineTile.worldy() + Mathf.range(tilesize / 2f), core);
|
mineTile.worldy() + Mathf.range(tilesize / 2f), core);
|
||||||
|
|||||||
@@ -105,7 +105,7 @@ public abstract class InputHandler implements InputProcessor, GestureListener{
|
|||||||
public static void transferItemTo(@Nullable Unit unit, Item item, int amount, float x, float y, Building build){
|
public static void transferItemTo(@Nullable Unit unit, Item item, int amount, float x, float y, Building build){
|
||||||
if(build == null || build.items == null) return;
|
if(build == null || build.items == null) return;
|
||||||
|
|
||||||
if(unit != null) unit.stack.amount = Math.max(unit.stack.amount - amount, 0);
|
if(unit != null && unit.item() == item) unit.stack.amount = Math.max(unit.stack.amount - amount, 0);
|
||||||
|
|
||||||
for(int i = 0; i < Mathf.clamp(amount / 3, 1, 8); i++){
|
for(int i = 0; i < Mathf.clamp(amount / 3, 1, 8); i++){
|
||||||
Time.run(i * 3, () -> createItemTransfer(item, amount, x, y, build, () -> {}));
|
Time.run(i * 3, () -> createItemTransfer(item, amount, x, y, build, () -> {}));
|
||||||
|
|||||||
10
fastlane/metadata/android/en-US/changelogs/29730.txt
Normal file
10
fastlane/metadata/android/en-US/changelogs/29730.txt
Normal file
@@ -0,0 +1,10 @@
|
|||||||
|
This should be one of the last beta builds. In a couple of days, I will make a final release with the most recent translation bundles & bugfixes.
|
||||||
|
|
||||||
|
- Fixed infinitely looping Vela laser sound
|
||||||
|
- Fixed fire not burning on tar
|
||||||
|
- Disabled fire for items with flammability <= 1 (this means coal bombing no longer causes fire)
|
||||||
|
- Disabled unit explosion team damage
|
||||||
|
- Disabled core unit crash damage
|
||||||
|
- Disabled automatic linking of adjacent bridges
|
||||||
|
|
||||||
|
Campaign:
|
||||||
Reference in New Issue
Block a user