@@ -1,18 +1,19 @@
|
||||
--- a/net/minecraft/server/CommandTeleport.java
|
||||
+++ b/net/minecraft/server/CommandTeleport.java
|
||||
@@ -12,6 +12,11 @@
|
||||
import java.util.Iterator;
|
||||
@@ -13,6 +13,12 @@
|
||||
import java.util.Set;
|
||||
import javax.annotation.Nullable;
|
||||
|
||||
+// CraftBukkit start
|
||||
+import org.bukkit.Location;
|
||||
+import org.bukkit.craftbukkit.CraftWorld;
|
||||
+import org.bukkit.event.entity.EntityTeleportEvent;
|
||||
+// CraftBukkit end
|
||||
|
||||
+
|
||||
public class CommandTeleport {
|
||||
|
||||
@@ -128,9 +133,9 @@
|
||||
private static final SimpleCommandExceptionType a = new SimpleCommandExceptionType(new ChatMessage("commands.teleport.invalidPosition"));
|
||||
@@ -128,9 +134,9 @@
|
||||
}
|
||||
|
||||
if (worldserver == entity.world) {
|
||||
@@ -24,7 +25,7 @@
|
||||
}
|
||||
|
||||
entity.setHeadRotation(f);
|
||||
@@ -139,6 +144,21 @@
|
||||
@@ -139,6 +145,21 @@
|
||||
float f3 = MathHelper.g(f1);
|
||||
|
||||
f3 = MathHelper.a(f3, -90.0F, 90.0F);
|
||||
|
||||
Reference in New Issue
Block a user