diff --git a/src/main/java/io/github/rektroth/whiteout/mixin/block/AzaleaBlockMixin.java b/src/main/java/io/github/rektroth/whiteout/mixin/block/AzaleaBlockMixin.java index 9822c1f..f5ee715 100644 --- a/src/main/java/io/github/rektroth/whiteout/mixin/block/AzaleaBlockMixin.java +++ b/src/main/java/io/github/rektroth/whiteout/mixin/block/AzaleaBlockMixin.java @@ -1,2 +1,26 @@ -package io.github.rektroth.whiteout.mixin.block;public class AzaleaBlockMixin { +/* + * Patch for MC-224454 + * + * Authored for CraftBukkit/Spigot by Jake Potrebic on July 11, 2022. + * Ported to Fabric by Rektroth on April 25, 2024. + */ + +package io.github.rektroth.whiteout.mixin.block; + +import net.minecraft.block.AzaleaBlock; +import net.minecraft.block.BlockState; +import net.minecraft.block.PlantBlock; +import net.minecraft.entity.ai.pathing.NavigationType; +import org.spongepowered.asm.mixin.Mixin; + +@Mixin(AzaleaBlock.class) +public abstract class AzaleaBlockMixin extends PlantBlock { + protected AzaleaBlockMixin(Settings settings) { + super(settings); + } + + @Override + public boolean canPathfindThrough(BlockState state, NavigationType type) { + return false; + } } diff --git a/src/main/resources/whiteout.mixins.json b/src/main/resources/whiteout.mixins.json index bd347db..f1fa087 100644 --- a/src/main/resources/whiteout.mixins.json +++ b/src/main/resources/whiteout.mixins.json @@ -3,6 +3,7 @@ "package": "io.github.rektroth.whiteout.mixin", "compatibilityLevel": "JAVA_21", "mixins": [ + "block.AzaleaBlockMixin", "entity.EntityMixin", "entity.ai.brain.task.VillagerTaskListProviderMixin", "entity.ai.goal.WolfBegGoalAccessor",