File tree Expand file tree Collapse file tree
src/main/java/com/comphenix/protocol/injector/netty/channel Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2929import com .comphenix .protocol .injector .netty .Injector ;
3030import com .comphenix .protocol .injector .netty .WirePacket ;
3131import com .comphenix .protocol .injector .packet .PacketRegistry ;
32+ import com .comphenix .protocol .injector .temporary .TemporaryPlayer ;
3233import com .comphenix .protocol .reflect .FuzzyReflection ;
3334import com .comphenix .protocol .reflect .accessors .Accessors ;
3435import com .comphenix .protocol .reflect .accessors .FieldAccessor ;
@@ -343,7 +344,7 @@ public Protocol getCurrentProtocol(PacketType.Sender sender) {
343344 @ Override
344345 public Player getPlayer () {
345346 // if the player was already resolved there is no need to do further lookups
346- if (this .player != null ) {
347+ if (this .player != null && !( this . player instanceof TemporaryPlayer ) ) {
347348 return this .player ;
348349 }
349350
You can’t perform that action at this time.
0 commit comments