Close #398 by printing debug so we can identify the issue if it arises again

This commit is contained in:
md_5 2013-05-29 12:02:06 +10:00
parent cfb823f077
commit 0d666168f0
2 changed files with 0 additions and 2 deletions

View File

@ -1,6 +1,5 @@
package net.md_5.bungee.api.event;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;

View File

@ -148,7 +148,6 @@ public final class UserConnection implements ProxiedPlayer
return;
}
Preconditions.checkArgument( event.getTarget() instanceof BungeeServerInfo, "BungeeCord can only connect to BungeeServerInfo instances" );
final BungeeServerInfo target = (BungeeServerInfo) event.getTarget(); // Update in case the event changed target
if ( getServer() != null && Objects.equals( getServer().getInfo(), target ) )