Its impossible unless you have a creative server and no mobs and no nothing, but we must allow 0 as an entity ID

This commit is contained in:
md_5 2013-05-25 17:18:03 +10:00
parent 3e28decef2
commit 97338cbfad

View File

@ -77,6 +77,7 @@ public final class UserConnection implements ProxiedPlayer
private final Collection<String> permissions = new CaseInsensitiveSet();
/*========================================================================*/
@Getter
@Setter
private int clientEntityId;
@Getter
@Setter
@ -317,12 +318,6 @@ public final class UserConnection implements ProxiedPlayer
return name;
}
public void setClientEntityId(int clientEntityId)
{
Preconditions.checkState( this.clientEntityId == 0, "Client entityId already set!" );
this.clientEntityId = clientEntityId;
}
@Override
public void setTexturePack(TexturePackInfo pack)
{