Archiviert
13
0

Correct patch start comment.

Dieser Commit ist enthalten in:
md_5 2014-04-02 18:05:47 +11:00
Ursprung fe031329f3
Commit 710f33af71

Datei anzeigen

@ -1,4 +1,4 @@
From 5058580880735b725b4412d85fb942e0287c5a0b Mon Sep 17 00:00:00 2001
From f3cde7b18ec8f58f094daf609cb27ca510342a90 Mon Sep 17 00:00:00 2001
From: md_5 <git@md-5.net>
Date: Sat, 15 Mar 2014 14:34:03 +1100
Subject: [PATCH] Optimize Player Lookup
@ -126,14 +126,14 @@ index 24b0066..7fbbcec 100644
@Override
diff --git a/src/main/java/org/bukkit/craftbukkit/CraftServer.java b/src/main/java/org/bukkit/craftbukkit/CraftServer.java
index 6912fab..4c089ea 100644
index 5d8c557..707410b 100644
--- a/src/main/java/org/bukkit/craftbukkit/CraftServer.java
+++ b/src/main/java/org/bukkit/craftbukkit/CraftServer.java
@@ -502,6 +502,13 @@ public final class CraftServer implements Server {
public Player getPlayer(final String name) {
Validate.notNull(name, "Name cannot be null");
+ // Spigot End
+ // Spigot Start
+ Player directLookup = getPlayerExact( name );
+ if ( directLookup != null )
+ {
@ -164,7 +164,7 @@ index 6912fab..4c089ea 100644
// TODO: In 1.7.6+ this should use the server's UUID->EntityPlayer map
diff --git a/src/main/java/org/bukkit/craftbukkit/entity/CraftPlayer.java b/src/main/java/org/bukkit/craftbukkit/entity/CraftPlayer.java
index 5d7e77f..bee7abe 100644
index 260502b..a5d3eee 100644
--- a/src/main/java/org/bukkit/craftbukkit/entity/CraftPlayer.java
+++ b/src/main/java/org/bukkit/craftbukkit/entity/CraftPlayer.java
@@ -94,13 +94,7 @@ public class CraftPlayer extends CraftHumanEntity implements Player {