Skip to content

Commit

Permalink
Merge branch 'main' into lokalise
Browse files Browse the repository at this point in the history
  • Loading branch information
Litorom authored Dec 9, 2024
2 parents db56950 + 71ce075 commit 352e5ed
Show file tree
Hide file tree
Showing 5 changed files with 36 additions and 13 deletions.
30 changes: 25 additions & 5 deletions ChangeLog.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,18 +7,25 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html),
but some sections are changed to compliant this project.

## [2.2.1]
## [2.3.0]

### Additions

* Added ornate wood tiles
* Added dye vat
* Added 16 new flowers
* Added 16 dye colors
* Added 15 bed colors
* Added 10 wool colors
* Added a backup feature whenever using a development build

### Changes

* Disabled hardware acceleration by default
* Hardware acceleration is now a toggle in settings
* Screenshots will now be the size of the rendered view within the window
* Updated localization
* Updated textures of wool items
* Updated textures of wool tiles

### Removals

Expand All @@ -27,9 +34,22 @@ but some sections are changed to compliant this project.

### Fixes

* Optimized light source rendering
* Optimized calculations
* Fixed the texture on stone hoe

## [2.2.1]

### Additions
* Added inventory capacity counter

### Fixes
* Prevent creepers from blowing up stairs
* Updated localisation
* Fixed Russian font
* Fixed performance issues
* Fixed corner rendering of some tiles
* Fixed overworld rendering as totally black at night
* Fixed some keys not bound to cursor mappings
* Fixed a wrong texture
* Fixed problems with screenshot feature

## [2.2.0]

Expand Down
8 changes: 7 additions & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,9 @@ plugins {

allprojects {
apply plugin: "java"
apply plugin: "application"

version = "2.2.1-dev2"
version = "2.3.0-dev1"

sourceCompatibility = 8
[compileJava, compileTestJava]*.options*.encoding = 'UTF-8'
Expand Down Expand Up @@ -81,6 +82,11 @@ dependencies {
implementation project(":client")
}

// Running the root project actually just runs the client project
application {
mainClass = 'minicraft.core.Game'
}

// Build a runnable game distribution.
jar {
manifest {
Expand Down
2 changes: 1 addition & 1 deletion src/client/java/minicraft/core/Game.java
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ protected Game() {

public static final String NAME = "Minicraft Plus"; // This is the name on the application window.

public static final Version VERSION = new Version("2.2.1-dev2");
public static final Version VERSION = new Version("2.3.0-dev1");

public static InputHandler input; // Input used in Game, Player, and just about all the *Menu classes.
public static Player player;
Expand Down
9 changes: 3 additions & 6 deletions src/client/java/minicraft/saveload/Load.java
Original file line number Diff line number Diff line change
Expand Up @@ -755,7 +755,7 @@ private void loadWorld(String filename) {
default:
tilename = "White Wool";
}
} else if (worldVer.compareTo(new Version("2.2.1-dev2")) < 0) {
} else if (worldVer.compareTo(new Version("2.3.0-dev1")) < 0) {
tilename = "White Wool";
}
} else if (l == World.minLevelDepth + 1 && tilename.equalsIgnoreCase("Lapis") && worldVer.compareTo(new Version("2.0.3-dev6")) < 0) {
Expand Down Expand Up @@ -883,7 +883,7 @@ public static void loadTile(Version worldVer, short[] tiles, short[] data, int i
data[idx] = Tiles.get(matcher.group(1)).id;
} else {
tiles[idx] = Tiles.get(tileName).id;
if (worldVer.compareTo(new Version("2.2.1-dev1")) <= 0 && tileName.equalsIgnoreCase("FLOWER")) {
if (worldVer.compareTo(new Version("2.3.0-dev1")) <= 0 && tileName.equalsIgnoreCase("FLOWER")) {
data[idx] = 0;
} else {
data[idx] = Short.parseShort(tileData);
Expand Down Expand Up @@ -1046,12 +1046,9 @@ protected static String subOldName(String name, Version worldVer) {
name = name.replace("Potion", "Awkward Potion");
}

if (worldVer.compareTo(new Version("2.2.1-dev2")) < 0) {
if (worldVer.compareTo(new Version("2.3.0-dev1")) < 0) {
if (name.startsWith("Wool"))
name = name.replace("Wool", "White Wool");
}

if (worldVer.compareTo(new Version("2.2.1-dev2")) < 0) {
if (name.startsWith("Flower"))
name = name.replace("Flower", "Oxeye Daisy");
}
Expand Down
Binary file modified src/client/resources/assets/textures/gui/font.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 352e5ed

Please sign in to comment.