geforkt von Mirrors/Paper
Revert "Set head rotation pitch in addition to yaw in TPs"
This reverts commit 87ebcab532
.
Dieser Commit ist enthalten in:
Ursprung
87ebcab532
Commit
c9c9032b8d
@ -1,46 +0,0 @@
|
||||
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
||||
From: Zach Brown <1254957+zachbr@users.noreply.github.com>
|
||||
Date: Sat, 7 Jan 2017 21:31:32 -0600
|
||||
Subject: [PATCH] Set head rotation pitch in addition to yaw on TP
|
||||
|
||||
|
||||
diff --git a/src/main/java/net/minecraft/server/Entity.java b/src/main/java/net/minecraft/server/Entity.java
|
||||
index 0000000000000000000000000000000000000000..0000000000000000000000000000000000000000 100644
|
||||
--- a/src/main/java/net/minecraft/server/Entity.java
|
||||
+++ b/src/main/java/net/minecraft/server/Entity.java
|
||||
@@ -0,0 +0,0 @@ public abstract class Entity implements ICommandListener {
|
||||
return 0.0F;
|
||||
}
|
||||
|
||||
+ public final void setHeadRotationYaw(float yaw) { this.h(yaw); } // Paper - OBFHELPER
|
||||
public void h(float f) {}
|
||||
|
||||
+ public final void setHeadRotationPitch(float pitch) { this.i(pitch); } // Paper - OBFHELPER
|
||||
public void i(float f) {}
|
||||
|
||||
public boolean aV() {
|
||||
diff --git a/src/main/java/org/bukkit/craftbukkit/entity/CraftEntity.java b/src/main/java/org/bukkit/craftbukkit/entity/CraftEntity.java
|
||||
index 0000000000000000000000000000000000000000..0000000000000000000000000000000000000000 100644
|
||||
--- a/src/main/java/org/bukkit/craftbukkit/entity/CraftEntity.java
|
||||
+++ b/src/main/java/org/bukkit/craftbukkit/entity/CraftEntity.java
|
||||
@@ -0,0 +0,0 @@ import org.bukkit.Location;
|
||||
import org.bukkit.Server;
|
||||
import org.bukkit.World;
|
||||
import org.bukkit.craftbukkit.CraftServer;
|
||||
-import org.bukkit.craftbukkit.CraftWorld;
|
||||
import org.bukkit.event.entity.EntityDamageEvent;
|
||||
import org.bukkit.event.player.PlayerTeleportEvent.TeleportCause;
|
||||
import org.bukkit.metadata.MetadataValue;
|
||||
@@ -0,0 +0,0 @@ public abstract class CraftEntity implements org.bukkit.entity.Entity {
|
||||
// entity.setLocation() throws no event, and so cannot be cancelled
|
||||
entity.setLocation(location.getX(), location.getY(), location.getZ(), location.getYaw(), location.getPitch());
|
||||
// SPIGOT-619: Force sync head rotation also
|
||||
- entity.h(location.getYaw()); // PAIL: setHeadRotation
|
||||
+ // Paper start - GH-473 - Set pitch as well as yaw, rename both calls to use our obfuscation helpers
|
||||
+ entity.setHeadRotationPitch(location.getPitch());
|
||||
+ entity.setHeadRotationYaw(location.getYaw()); // PAIL: setHeadRotation
|
||||
+ // Paper end
|
||||
entity.world.entityJoinedWorld(entity, false); // Spigot - register to new chunk
|
||||
|
||||
return true;
|
||||
--
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren