Merge branch 'master' into AI_ATTACK_TIMEOUT

This commit is contained in:
kevlahnota
2024-11-16 12:19:32 +08:00
committed by GitHub
2 changed files with 10 additions and 8 deletions

View File

@@ -8,11 +8,11 @@ on:
description: 'Run the build with tmate debugging enabled (https://github.com/marketplace/actions/debugging-with-tmate)' description: 'Run the build with tmate debugging enabled (https://github.com/marketplace/actions/debugging-with-tmate)'
required: false required: false
default: false default: false
upload_package: #upload_package:
type: boolean # type: boolean
description: 'Upload the completed Android package' # description: 'Upload the completed Android package'
required: false # required: false
default: true # default: true
schedule: schedule:
# * is a special character in YAML so you have to quote this string # * is a special character in YAML so you have to quote this string
- cron: '00 19 * * *' - cron: '00 19 * * *'
@@ -93,6 +93,7 @@ jobs:
mkdir upload mkdir upload
mv /home/runner/work/forge/forge/forge-gui-android/target/*-signed-aligned.apk upload/ mv /home/runner/work/forge/forge/forge-gui-android/target/*-signed-aligned.apk upload/
mv /home/runner/work/forge/forge/forge-gui-android/target/assets.zip upload/ mv /home/runner/work/forge/forge/forge-gui-android/target/assets.zip upload/
mv /home/runner/work/forge/forge/forge-gui-android/target/classes/assets/version.txt upload/
cd upload cd upload
ls ls
env: env:
@@ -100,7 +101,7 @@ jobs:
- name: 📂 Sync files - name: 📂 Sync files
uses: SamKirkland/FTP-Deploy-Action@v4.3.4 uses: SamKirkland/FTP-Deploy-Action@v4.3.4
if: ${{ inputs.upload_package }} #if: ${{ inputs.upload_package }}
with: with:
server: ftp.cardforge.org server: ftp.cardforge.org
username: ${{ secrets.FTP_USERNAME }} username: ${{ secrets.FTP_USERNAME }}

View File

@@ -56,7 +56,8 @@ public class InputQueue extends Observable {
if (topMostInput != inp) { if (topMostInput != inp) {
System.out.println("Cannot remove input " + inp.getClass().getSimpleName() + " because it's not on top of stack. Stack = " + inputStack ); System.out.println("Cannot remove input " + inp.getClass().getSimpleName() + " because it's not on top of stack. Stack = " + inputStack );
} else { } else if (topMostInput != null) {
// if topMostInput is null then it means the inputstack is already empty, why this is called twice?
inputStack.pop(); inputStack.pop();
} }
updateObservers(); updateObservers();