-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
26 additions
and
1 deletion.
There are no files selected for viewing
26 changes: 25 additions & 1 deletion
26
src/main/java/io/github/rektroth/whiteout/mixin/block/AzaleaBlockMixin.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters