From bf5160f65120159a2658b166a032814e29c8d9f2 Mon Sep 17 00:00:00 2001 From: UltimatChamp Date: Fri, 28 Feb 2025 17:43:43 +0530 Subject: [PATCH] chore(release): 1.5.0 --- CHANGELOG.md | 14 +++++++++++--- gradle.properties | 2 +- .../model/BetterGrassifyBakedModel.java | 3 ++- 3 files changed, 14 insertions(+), 5 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 7cc9aa5..7ef4b45 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,8 +1,16 @@ -🗃️**Detailed Changelog: [1.4.3 --> 1.4.4](https://github.com/UltimatChamp/BetterGrassify/compare/1.4.3+fabric.1.21.4...1.4.4+fabric.1.21.4)** +🗃️**Detailed Changelog: [1.4.4 --> 1.5.0](https://github.com/UltimatChamp/BetterGrassify/compare/1.4.4+fabric.1.21.4...1.5.0+fabric.1.21.4)** + +
+ +### 📢Announcement + +- Support for all `1.20.x` versions has been dropped. _(Almost been a year since `1.20.6` was released)_
### 🛠️Changes -- Updated **Turkish** translation. [**[#46]**](https://github.com/UltimatChamp/BetterGrassify/pull/46) -- Updated **Brazilian Portuguese** translation. [**[#47]**](https://github.com/UltimatChamp/BetterGrassify/pull/47) +- Fixed various issues with pistons. +- Fixed some very rare cases where **Better Snowy Grass** would be applied, even when disabled. +- Some internal code optimizations and refactoring. +- Updated **Italian** translation. [**[#49]**](https://github.com/UltimatChamp/BetterGrassify/pull/49) diff --git a/gradle.properties b/gradle.properties index d07c745..232acc5 100644 --- a/gradle.properties +++ b/gradle.properties @@ -8,7 +8,7 @@ mod_name=BetterGrassify mod_license=Apache-2.0 mod_authors=UltimatChamp, JayemCeekay mod_description=Gamers can finally touch grass!?\nOptiFine's Fancy and Fast better grass implemented on Fabric and NeoForge! -mod_version=1.4.4 +mod_version=1.5.0 maven_group=dev.ultimatchamp # Providers diff --git a/src/main/java/dev/ultimatchamp/bettergrass/model/BetterGrassifyBakedModel.java b/src/main/java/dev/ultimatchamp/bettergrass/model/BetterGrassifyBakedModel.java index e290868..90aa8ad 100644 --- a/src/main/java/dev/ultimatchamp/bettergrass/model/BetterGrassifyBakedModel.java +++ b/src/main/java/dev/ultimatchamp/bettergrass/model/BetterGrassifyBakedModel.java @@ -222,7 +222,8 @@ public static BlockState getLayerNeighbour(BlockRenderView world, BlockPos selfP } public static boolean isLayerNeighbourSnow(BlockRenderView world, BlockPos selfPos) { - return getLayerNeighbour(world, selfPos).isOf(Blocks.SNOW); + BlockState layerNeighbour = getLayerNeighbour(world, selfPos); + return layerNeighbour != null && layerNeighbour.isOf(Blocks.SNOW); } public static boolean canHaveGhostSnowLayer(BlockRenderView world, BlockPos selfPos) {