9
0
mirror of https://github.com/Xiao-MoMi/Custom-Fishing.git synced 2025-12-19 15:09:24 +00:00

fix bait animation on 1.21.3+

This commit is contained in:
XiaoMoMi
2024-11-29 17:15:53 +08:00
parent 9b192df037
commit e3200a3d05
3 changed files with 7 additions and 2 deletions

View File

@@ -18,6 +18,7 @@
package net.momirealms.customfishing.api.mechanic.fishing;
import net.momirealms.customfishing.api.BukkitCustomFishingPlugin;
import net.momirealms.customfishing.common.helper.VersionHelper;
import net.momirealms.customfishing.common.plugin.scheduler.SchedulerTask;
import net.momirealms.sparrow.heart.SparrowHeart;
import org.bukkit.entity.FishHook;
@@ -45,7 +46,7 @@ public class BaitAnimationTask implements Runnable {
@Override
public void run() {
SparrowHeart.getInstance().sendClientSideEntityMotion(player, fishHook.getVelocity(), entityID);
SparrowHeart.getInstance().sendClientSideTeleportEntity(player, fishHook.getLocation().clone().subtract(0,0.6,0), false, entityID);
SparrowHeart.getInstance().sendClientSideTeleportEntity(player, fishHook.getLocation().clone().subtract(0,0.6,0), fishHook.getVelocity(), false, entityID);
}
public void cancel() {

View File

@@ -102,6 +102,10 @@ public class VersionHelper {
return version >= 20.49;
}
public static boolean isVersionNewerThan1_21_3() {
return version >= 21.29;
}
public static boolean isFolia() {
return folia;
}

View File

@@ -20,7 +20,7 @@ h2_driver_version=2.3.232
sqlite_driver_version=3.47.0.0
adventure_bundle_version=4.17.0
adventure_platform_version=4.3.4
sparrow_heart_version=0.47
sparrow_heart_version=0.48
cloud_core_version=2.0.0
cloud_services_version=2.0.0
cloud_brigadier_version=2.0.0-beta.10