Skip to content

Commit

Permalink
Merge remote-tracking branch 'upstream/main' into patch-37
Browse files Browse the repository at this point in the history
# Conflicts:
#	src/client/java/minicraft/gfx/Color.java
  • Loading branch information
BenCheung0422 committed Feb 1, 2024
2 parents 5a05587 + 45fa5e2 commit a4f6b40
Show file tree
Hide file tree
Showing 274 changed files with 11,133 additions and 4,893 deletions.
2 changes: 1 addition & 1 deletion .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ charset = utf-8
indent_style = tab
indent_size = tab
tab_width = 4
ij_java_imports_layout = *,|,javax.**,|,java.**,|,$*
ij_java_imports_layout = *, |, javax.**, |, java.**, |, $*
ij_java_packages_to_use_import_on_demand = unset
ij_java_class_count_to_use_import_on_demand = 99999999
ij_java_names_count_to_use_import_on_demand = 99999999
Expand Down
6 changes: 4 additions & 2 deletions .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ A clear and concise description of what the bug is.

**To Reproduce**
Steps to reproduce the behavior:

1. Go to '...'
2. Click on '....'
3. See error
Expand All @@ -23,8 +24,9 @@ A clear and concise description of what you expected to happen.
If applicable, add screenshots to help explain your problem.

**Desktop (please complete the following information):**
- OS: [e.g. Windows]
- Game version [e.g. 2.0.7]

- OS: [e.g. Windows]
- Game version [e.g. 2.0.7]

**Additional context**
Add any other context about the problem here.
62 changes: 52 additions & 10 deletions .github/workflows/autobuild.yml
Original file line number Diff line number Diff line change
@@ -1,33 +1,75 @@
name: Nightly build
name: AutoRelease & Build
on:
schedule:
- cron: '0 0 * * *'
workflow_dispatch:

jobs:
gradle:
strategy:
matrix:
os: [ubuntu-latest]
runs-on: ${{ matrix.os }}
permissions:
contents: write
steps:
- uses: actions/checkout@v3
with:
token: ${{ secrets.LITOROMTOKEN }}
- name: Update ingame version
uses: jacobtomlinson/gha-find-replace@v3
with:
find: "${{ vars.VERSION }}-dev${{ vars.VERSION_old }}"
replace: "${{ vars.VERSION }}-dev${{ vars.VERSION_s }}"
include: "src/client/java/minicraft/core/Game.java"
- name: Update gradle version
uses: jacobtomlinson/gha-find-replace@v3
with:
find: "version = \"${{ vars.VERSION }}-dev${{ vars.VERSION_old }}\""
replace: "version = \"${{ vars.VERSION }}-dev${{ vars.VERSION_s }}\""
include: "build.gradle"
- name: Push changes
uses: stefanzweifel/git-auto-commit-action@v4
with:
commit_message: "Increment Version"
token: ${{ secrets.LITOROMTOKEN }}
repository: ${{ secrets.GITHUB_REPOSITORY }}
branch: ${{ github.ref }}

- uses: actions/setup-java@v3
with:
distribution: temurin
java-version: 8

- name: Increment old version number
uses: action-pack/increment@v2
with:
name: 'VERSION_old'
token: ${{ secrets.LITOROMTOKEN }}
repository: ${{ secrets.GITHUB_REPOSITORY }}
owner: 'MinicraftPlus'

- name: Increment new version number
uses: action-pack/increment@v2
with:
name: 'VERSION_s'
token: ${{ secrets.LITOROMTOKEN }}
repository: ${{ secrets.GITHUB_REPOSITORY }}
owner: 'MinicraftPlus'

- name: Setup Gradle
uses: gradle/gradle-build-action@v2.4.2

- name: Execute Gradle build
run: ./gradlew build
- uses: actions/upload-artifact@v3.1.2

- uses: "dciborow/action-github-releases@v1.0.1"
with:
name: "Nightly release"
path: |
repo_token: "${{ secrets.GITHUB_TOKEN }}"
automatic_release_tag: "v${{ vars.VERSION }}-dev${{ vars.VERSION_s }}"
prerelease: true
title: "Version ${{ vars.VERSION }}, Pre-release ${{ vars.VERSION_s }} (Nightly)"
generate_release_notes: true
files: |
LICENSE
ChangeLog.md
build/libs/**.jar
if-no-files-found: error
54 changes: 27 additions & 27 deletions .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,36 +37,36 @@ jobs:
# Learn more about CodeQL language support at https://aka.ms/codeql-docs/language-support

steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Checkout repository
uses: actions/checkout@v3

# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
uses: github/codeql-action/init@v2
with:
languages: ${{ matrix.language }}
# If you wish to specify custom queries, you can do so here or in a config file.
# By default, queries listed here will override any specified in a config file.
# Prefix the list here with "+" to use these queries and those in the config file.

# Details on CodeQL's query packs refer to : https://docs.github.com/en/code-security/code-scanning/automatically-scanning-your-code-for-vulnerabilities-and-errors/configuring-code-scanning#using-queries-in-ql-packs
# queries: security-extended,security-and-quality
# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
uses: github/codeql-action/init@v2
with:
languages: ${{ matrix.language }}
# If you wish to specify custom queries, you can do so here or in a config file.
# By default, queries listed here will override any specified in a config file.
# Prefix the list here with "+" to use these queries and those in the config file.


# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
# If this step fails, then you should remove it and run the build manually (see below)
- name: Autobuild
uses: github/codeql-action/autobuild@v2
# Details on CodeQL's query packs refer to : https://docs.github.com/en/code-security/code-scanning/automatically-scanning-your-code-for-vulnerabilities-and-errors/configuring-code-scanning#using-queries-in-ql-packs
# queries: security-extended,security-and-quality

# ℹ️ Command-line programs to run using the OS shell.
# 📚 See https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsrun

# If the Autobuild fails above, remove it and uncomment the following three lines.
# modify them (or add more) to build your code if your project, please refer to the EXAMPLE below for guidance.
# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
# If this step fails, then you should remove it and run the build manually (see below)
- name: Autobuild
uses: github/codeql-action/autobuild@v2

# - run: |
# echo "Run, Build Application using script"
# ./location_of_script_within_repo/buildscript.sh
# ℹ️ Command-line programs to run using the OS shell.
# 📚 See https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsrun

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v2
# If the Autobuild fails above, remove it and uncomment the following three lines.
# modify them (or add more) to build your code if your project, please refer to the EXAMPLE below for guidance.

# - run: |
# echo "Run, Build Application using script"
# ./location_of_script_within_repo/buildscript.sh

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v2
37 changes: 22 additions & 15 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -1,18 +1,25 @@
name: publish
on: [workflow_dispatch] # Manual trigger
name: Publish package to GitHub Packages
on:
release:
types: [created]
jobs:
build:
strategy:
matrix:
java: [ 8-jdk ]
runs-on: ubuntu-20.04
container:
image: eclipse-temurin:${{ matrix.java }}
options: --user root
publish:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- uses: actions/checkout@v1
- uses: gradle/wrapper-validation-action@v1
- run: ./gradlew publish --stacktrace
- uses: actions/checkout@v4
- uses: actions/setup-java@v3
with:
java-version: '8'
distribution: 'oracle'
- name: Validate Gradle wrapper
uses: gradle/wrapper-validation-action@ccb4328a959376b642e027874838f60f8e596de3
- name: Publish package
uses: gradle/gradle-build-action@749f47bda3e44aa060e82d7b3ef7e40d953bd629
with:
arguments: publish
env:
MAVEN_PUBLISH_TOKEN: ${{ secrets.MAVEN_PUBLISH_TOKEN }}
MAVEN_PUBLISH_USERNAME: ${{ secrets.MAVEN_PUBLISH_USERNAME }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_ACTOR: ${{ secrets.GITHUB_ACTOR }}
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# dev savedir folder
run/

# Compiled class file
*.class

Expand Down
21 changes: 19 additions & 2 deletions ChangeLog.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,9 @@ but some sections are changed to compliant this project.
* Added obsidian knight as the second boss
* Added limitation to inventories
* Added limitation to stackable items
* Added four new debug arguments - `--debug-log-time`, `--debug-log-thread`, `--debug-log-trace`, `--debug-filelog-full`
* Added seven new debug
arguments - `--debug-log-time`, `--debug-log-thread`, `--debug-log-trace`, `--debug-filelog-full`, `--debug-level`, `--debug-locale`, `--debug-unloc-tracing`
* Added a new argument for disabling hardware acceleration - `--no-hardware-acceleration`
* Added a toggle for HUD display
* Added a toggle for simplified effect display
* Added a new menu for creative mode
Expand All @@ -36,6 +38,9 @@ but some sections are changed to compliant this project.
* Added coloured sheep (#445)
* Added ability to dye sheep and beds (#445)
* Cow and sheep now graze on grasses
* Added a trigger to auto-enable hardware acceleration
* Added support for lower-cased letters
* Added item description menu

### Changes

Expand All @@ -46,11 +51,18 @@ but some sections are changed to compliant this project.
* If the application flag `--savedir` is present, '.playminicraft/mods/Minecraft Plus' will no longer be appended
* Updated all ore-related and metal-related textures
* Made the parent display render in the background
* Made recipies unlockable
* Made recipes unlockable
* Made you reobtain your old clothes when putting on new clothing
* Made you reobtain empty bottles when a bottle of potion is consumed
* Made languages fallback to English
* Improved the tile place indicator
* Overhauled debugging actions
* Overhauled the farming system
* Changed the languaging setting menu
* Optimized CPU usage
* Reduced food stamina cost
* Made some strings lower-cased
* Updated spawning and despawning conditions

### Removals

Expand All @@ -62,6 +74,7 @@ but some sections are changed to compliant this project.
* Fixed rendering positioning problem of color code styled texts
* Fixed lights disappearing when out of screen
* Fixed animals and items destroying plants
* Fixed various old world loading crashes

## [2.1.3]

Expand Down Expand Up @@ -400,7 +413,11 @@ but some sections are changed to compliant this project.
> * Added an Iron Lantern at the entrance of the purple dungeon
[2.2.0]: https://github.com/MinicraftPlus/minicraft-plus-revived/compare/v2.1.3...HEAD

[2.1.3]: https://github.com/MinicraftPlus/minicraft-plus-revived/compare/v2.1.2...v2.1.3

[2.1.2]: https://github.com/MinicraftPlus/minicraft-plus-revived/compare/v2.1.1...v2.1.2

[2.1.1]: https://github.com/MinicraftPlus/minicraft-plus-revived/compare/v2.1.0...v2.1.1

[2.1.0]: https://github.com/MinicraftPlus/minicraft-plus-revived/compare/v2.0.7...v2.1.0
9 changes: 8 additions & 1 deletion Credits.md
Original file line number Diff line number Diff line change
@@ -1,16 +1,21 @@
## Credits

Original game by Markus "Notch" Persson.

### Former maintainers

* David.b
* Dillyg10
* Chris J
* afyber
* Makkkkus

### Current maintainer
* Makkkkus

* Litorom1

### Code contributions from

* A.L.I.C.E
* BenCheung0422
* Christoffer Holmesland
Expand All @@ -21,11 +26,13 @@ Original game by Markus "Notch" Persson.
* rocketedsocks

### Art contributions from

* TheBigEye
* JamesTDG
* Geek_Joystick

### Localisation contributions from

* A.L.I.C.E
* Christoffer Holmesland
* GladfanIsHere
Expand Down
Loading

0 comments on commit a4f6b40

Please sign in to comment.