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 authored Nov 25, 2023
1 parent 50f6444 commit 7bbf074
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
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 @@ -1306,6 +1307,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
2 changes: 1 addition & 1 deletion chunky/src/java/se/llbit/chunky/block/minecraft/Grass.java
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
public class Grass extends AbstractModelBlock {

public Grass() {
super("grass", Texture.tallGrass);
super("short_grass", Texture.tallGrass);
solid = false;
model = new GrassTintedSpriteModel(texture);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -325,6 +325,7 @@ public class TexturePackLoader {
new SimpleTexture("textures/blocks/grass_side_overlay", Texture.grassSide),
new IndexedTexture(0x26, Texture.grassSide)));
ALL_TEXTURES.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 7bbf074

Please sign in to comment.