Skip to content

Commit

Permalink
Fixed hard mode, allow no pinyin mode, deleted old assets
Browse files Browse the repository at this point in the history
  • Loading branch information
WinterAlexander committed Dec 1, 2024
1 parent cc0a13f commit 383a6fe
Show file tree
Hide file tree
Showing 12 changed files with 4 additions and 1 deletion.
Binary file removed assets/minecraft/textures/block/dirt.png
Binary file not shown.
Binary file removed assets/minecraft/textures/block/grass_block_top.png
Binary file not shown.
Binary file removed assets/minecraft/textures/block/gravel.png
Binary file not shown.
Binary file removed assets/minecraft/textures/block/jungle_leaves.png
Binary file not shown.
Binary file removed assets/minecraft/textures/block/jungle_log.png
Binary file not shown.
Binary file removed assets/minecraft/textures/block/oak_leaves.png
Binary file not shown.
Binary file removed assets/minecraft/textures/block/oak_log.png
Binary file not shown.
Binary file removed assets/minecraft/textures/block/sand.png
Binary file not shown.
Binary file removed assets/minecraft/textures/block/stone.png
Binary file not shown.
Binary file removed assets/minecraft/textures/block/water_still.png
Binary file not shown.
2 changes: 1 addition & 1 deletion src/main/java/com/winteralexander/hanzirp/Main.java
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ public static void main(String[] args) throws Exception {
continue; // skip non square images

BufferedImage img = 汉字纹理制作者.制作纹理(翻译.get("block.minecraft." + name),
拼音.get("block.minecraft." + name),
config.includePinyin ? 拼音.get("block.minecraft." + name) : null,
config.fontPath,
config.textureSize,
config.keepTextures ? back : null);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,9 @@ public class 汉字纹理制作者 {
avgB /= 255f;
float gray = 0.299f * avgR + 0.587f * avgG + 0.114f * avgB;
white = gray < 0.5f;
} else {
graphics.setColor(Color.BLACK);
graphics.fillRect(0, 0, size, size);
}

Font font;
Expand Down

0 comments on commit 383a6fe

Please sign in to comment.