Compare commits

..

3 Commits

Author SHA1 Message Date
M2ke4U
0c9fa9d9e1 Merge pull request #117 from MC-XiaoHei/patch-1
fix dumplicate in build.gradle.kts.patch
2025-06-20 22:43:25 +08:00
MC_XiaoHei
a4124d5cda fix dumplicate in build.gradle.kts.patch 2025-06-20 09:37:36 +08:00
Helvetica Volubi
3eedf86153 fix : temporarily fix teleport yam and pitch(#116)
need folia to refix
2025-06-18 23:48:01 +08:00
2 changed files with 21 additions and 11 deletions

View File

@@ -110,14 +110,3 @@
"Build-Number" to (build ?: ""),
"Build-Time" to buildTime.toString(),
"Git-Branch" to gitBranch,
@@ -393,3 +_,10 @@
classpath(tasks.createReobfPaperclipJar.flatMap { it.outputZip })
mainClass.set(null as String?)
}
+
+// Pufferfish Start
+tasks.withType<JavaCompile> {
+ val compilerArgs = options.compilerArgs
+ compilerArgs.add("--add-modules=jdk.incubator.vector")
+}
+// Pufferfish End

View File

@@ -0,0 +1,21 @@
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
From: Helvetica Volubi <suisuroru@blue-millennium.fun>
Date: Wed, 18 Jun 2025 23:46:20 +0800
Subject: [PATCH] Temporarily fix teleport yam and pitch
diff --git a/net/minecraft/server/commands/TeleportCommand.java b/net/minecraft/server/commands/TeleportCommand.java
index 174122905addbc88e818cd4946e831aec051b91a..4451f79df614c6e57e813996888b4e99a14c87d5 100644
--- a/net/minecraft/server/commands/TeleportCommand.java
+++ b/net/minecraft/server/commands/TeleportCommand.java
@@ -283,8 +283,8 @@ public class TeleportCommand {
if (true) {
ServerLevel worldFinal = level;
Vec3 posFinal = new Vec3(x, y, z);
- Float yawFinal = Float.valueOf(f);
- Float pitchFinal = Float.valueOf(f1);
+ Float yawFinal = Float.valueOf(f + target.getYRot());
+ Float pitchFinal = Float.valueOf(f1 + target.getXRot());
target.getBukkitEntity().taskScheduler.schedule((Entity nmsEntity) -> {
nmsEntity.unRide();
nmsEntity.teleportAsync(