Skip to content

Commit

Permalink
Rename grass to short_grass. (#1674)
Browse files Browse the repository at this point in the history
  • Loading branch information
leMaik committed Dec 15, 2023
1 parent 3c6ea5e commit faaa0fd
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion chunky/src/java/se/llbit/chunky/block/Grass.java
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

public class Grass extends MinecraftBlockTranslucent {
public Grass() {
super("grass", Texture.tallGrass);
super("short_grass", Texture.tallGrass);
localIntersect = true;
solid = false;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -349,7 +349,8 @@ public class MinecraftBlockProvider implements BlockProvider {
"minecraft:granite_stairs",
"minecraft:granite_wall",
"minecraft:grass_block",
"minecraft:grass",
"minecraft:grass", // pre 1.20.3-pre2
"minecraft:short_grass", // since 1.20.3-pre2
"minecraft:grass_path", // pre 20w45a
"minecraft:gravel",
"minecraft:gray_banner",
Expand Down Expand Up @@ -1262,6 +1263,7 @@ public Block getBlockByTag(String namespacedName, Tag tag) {
case "cobweb":
return new SpriteBlock(name, Texture.cobweb);
case "grass":
case "short_grass": // since 1.20.3-pre2
return new Grass();
case "fern":
return new Fern();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -334,6 +334,7 @@ public class TexturePackLoader {
new SimpleTexture("textures/blocks/grass_side_overlay", Texture.grassSide),
new IndexedTexture(0x26, Texture.grassSide)));
allTextures.put("tallgrass", new AlternateTextures(
new SimpleTexture("assets/minecraft/textures/block/short_grass", Texture.tallGrass), // since 1.20.3-pre2
new SimpleTexture("assets/minecraft/textures/block/grass", Texture.tallGrass),
new SimpleTexture("assets/minecraft/textures/blocks/grass", Texture.tallGrass),
new SimpleTexture("assets/minecraft/textures/blocks/tallgrass", Texture.tallGrass),
Expand Down

0 comments on commit faaa0fd

Please sign in to comment.