Skip to content

Commit

Permalink
Fix MC-224454
Browse files Browse the repository at this point in the history
  • Loading branch information
Rektroth committed Apr 25, 2024
1 parent 1ca6e0a commit fc866f2
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -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 <[email protected]> on July 11, 2022.
* Ported to Fabric by Rektroth <[email protected]> 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;
}
}
1 change: 1 addition & 0 deletions src/main/resources/whiteout.mixins.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit fc866f2

Please sign in to comment.