Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .bugs
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,7 @@ patched 264285 server basic
patched 131562 server basic
patched 133218 server basic
patched 158900 server basic
patched 182763 server basic

previous 2025 17w47a
previous 53312 22w17a
Expand Down
4 changes: 4 additions & 0 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,7 @@ val modManifest = manifests.fabricModJson {
Ampflower's 2x2 Surrounded Saplings Fix - Code used licensed under Zlib
NoahvdAa's Thorium - Code used licensed under LGPLv3
Moulberry's MoulberryTweaks - Code used licensed under MIT
Wasinthorn Suksri's Fish No Stuck - Code used licensed under MIT
""".trimIndent()
}
authors.add("isXander")
Expand Down Expand Up @@ -168,6 +169,9 @@ tasks.withType<Jar>().configureEach {
from(rootProject.file("LICENSE")) {
into("META-INF")
}
from(rootProject.file("licenses/fish-no-stuck-MIT.txt")) {
into("META-INF/licenses")
}
}

// Ensure sub-par javadoc doesn't fail the build
Expand Down
21 changes: 21 additions & 0 deletions licenses/fish-no-stuck-MIT.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
MIT License

Copyright (c) 2023 Wasinthorn Suksri

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
/*
* Copyright (C) 2026 The Debugify Contributors
*
* SPDX-License-Identifier: LGPL-3.0-or-later
*
* Adapted from Fish No Stuck by Wasinthorn Suksri:
* https://github.com/SteveKunG/FishNoStuck
* The original implementation is MIT licensed; see the packaged license notice.
*/
package dev.isxander.debugify.mixins.basic.mc182763;

import dev.isxander.debugify.fixes.BugFix;
import dev.isxander.debugify.fixes.FixCategory;
import net.minecraft.world.entity.ai.goal.FollowFlockLeaderGoal;
import net.minecraft.world.entity.animal.fish.AbstractSchoolingFish;
import org.spongepowered.asm.mixin.Mixin;
import org.spongepowered.asm.mixin.injection.At;
import org.spongepowered.asm.mixin.injection.ModifyArg;

import java.util.function.Predicate;

@BugFix(
id = "MC-182763",
category = FixCategory.BASIC,
env = BugFix.Env.SERVER,
description = "Prevents fish that already have followers from being selected as followers"
)
@Mixin(FollowFlockLeaderGoal.class)
public abstract class FollowFlockLeaderGoalMixin {
@ModifyArg(
method = "canUse",
at = @At(
value = "INVOKE",
target = "java/util/stream/Stream.filter(Ljava/util/function/Predicate;)Ljava/util/stream/Stream;",
ordinal = 1,
remap = false
)
)
private Predicate<AbstractSchoolingFish> debugify$excludeFishWithFollowers(
Predicate<AbstractSchoolingFish> original
) {
return original.and(Predicate.not(AbstractSchoolingFish::hasFollowers));
}
}
1 change: 1 addition & 0 deletions src/main/resources/debugify.mixins.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
"basic.mc176806.RespawnAnchorBlockMixin",
"basic.mc177381.LocateCommandMixin",
"basic.mc179072.SwellGoalMixin",
"basic.mc182763.FollowFlockLeaderGoalMixin",
"basic.mc183990.MobMixin",
"basic.mc187100.EnderDragonMixin",
"basic.mc200418.ZombieVillagerMixin",
Expand Down