File tree 3 files changed +13
-2
lines changed
patches/net/minecraftforge/common/util
src/main/java/org/bukkit/craftbukkit
3 files changed +13
-2
lines changed Original file line number Diff line number Diff line change 2
2
3
3
# eclipse
4
4
/eclipse
5
+ /libraries
5
6
6
7
# idea
7
8
.idea
Original file line number Diff line number Diff line change 1
1
--- ../src-base/minecraft/net/minecraftforge/common/util/FakePlayerFactory.java
2
2
+++ ../src-work/minecraft/net/minecraftforge/common/util/FakePlayerFactory.java
3
- @@ -35,12 +35,24 @@
3
+ @@ -17,6 +17,9 @@
4
+ private static GameProfile MINECRAFT = new GameProfile(UUID.fromString("41C82C87-7AfB-4024-BA57-13D2C99CAE77"), "[Minecraft]");
5
+ // Map of all active fake player usernames to their entities
6
+ private static Map<GameProfile, FakePlayer> fakePlayers = Maps.newHashMap();
7
+ + public static Map<GameProfile, FakePlayer> getFakePlayers(){
8
+ + return fakePlayers;
9
+ + }
10
+ private static FakePlayer MINECRAFT_PLAYER = null;
11
+
12
+ public static FakePlayer getMinecraft(WorldServer world)
13
+ @@ -35,12 +38,24 @@
4
14
*/
5
15
public static FakePlayer get(WorldServer world, GameProfile username)
6
16
{
Original file line number Diff line number Diff line change @@ -147,7 +147,7 @@ public Player getPlayer() {
147
147
return (player .playerNetServerHandler != null ) ? player .playerNetServerHandler .getPlayerB () : null ; // Cauldron
148
148
}
149
149
}
150
- EntityPlayer player = net .minecraftforge .common .util .FakePlayerFactory .fakePlayers .get (profile );
150
+ EntityPlayer player = net .minecraftforge .common .util .FakePlayerFactory .getFakePlayers () .get (profile );
151
151
return player != null ? (Player )player .getBukkitEntity () : null ;
152
152
}
153
153
You can’t perform that action at this time.
0 commit comments