diff --git a/CraftBukkit-Patches/0145-Use-Map-for-getPlayer-String-lookup.patch b/CraftBukkit-Patches/0145-Use-Map-for-getPlayer-String-lookup.patch index b8a2040822..dac7e44fd3 100644 --- a/CraftBukkit-Patches/0145-Use-Map-for-getPlayer-String-lookup.patch +++ b/CraftBukkit-Patches/0145-Use-Map-for-getPlayer-String-lookup.patch @@ -1,11 +1,11 @@ -From bf2727ee6118aedf675620726d68ff933bd0c400 Mon Sep 17 00:00:00 2001 +From c6f91ad2c2077d4b5643b5f98cec026d7c55661d Mon Sep 17 00:00:00 2001 From: md_5 Date: Mon, 13 Jul 2015 19:05:15 +1000 Subject: [PATCH] Use Map for getPlayer(String) lookup. diff --git a/src/main/java/net/minecraft/server/PlayerList.java b/src/main/java/net/minecraft/server/PlayerList.java -index 08c7e50..6fda4b7 100644 +index 708c94c..08faf3a 100644 --- a/src/main/java/net/minecraft/server/PlayerList.java +++ b/src/main/java/net/minecraft/server/PlayerList.java @@ -65,6 +65,7 @@ public abstract class PlayerList { @@ -47,7 +47,7 @@ index 08c7e50..6fda4b7 100644 + this.playersByName.put(entityplayer1.getName(), entityplayer1); // Spigot this.j.put(entityplayer1.getUniqueID(), entityplayer1); } - entityplayer1.syncInventory(); + // entityplayer1.syncInventory(); @@ -1129,19 +1134,7 @@ public abstract class PlayerList { }