9
0
mirror of https://github.com/Xiao-MoMi/craft-engine.git synced 2025-12-30 12:29:15 +00:00

Update BukkitServerPlayer.java

This commit is contained in:
XiaoMoMi
2025-06-08 16:00:44 +08:00
parent b2c76d9ff0
commit 0eef225da6

View File

@@ -681,7 +681,7 @@ public class BukkitServerPlayer extends Player {
double d1 = (double) hitPos.y() - otherLocation.getY();
double d2 = (double) hitPos.z() - otherLocation.getZ();
if (d0 * d0 + d1 * d1 + d2 * d2 < 1024.0D) {
this.plugin.networkManager().sendPacket(this.plugin.adapt(other), packet);
FastNMS.INSTANCE.sendPacket(FastNMS.INSTANCE.field$Player$connection$connection(FastNMS.INSTANCE.method$CraftPlayer$getHandle(other)), packet);
}
}
}