Tweaked Biometric Cards for Sorting purposes.
This commit is contained in:
@@ -32,7 +32,9 @@ public class ToolBiometricCard extends AEBaseItem implements IBiometricCard
|
|||||||
public String getItemDisplayName(ItemStack is)
|
public String getItemDisplayName(ItemStack is)
|
||||||
{
|
{
|
||||||
String username = getUsername( is );
|
String username = getUsername( is );
|
||||||
return username.length() > 0 ? super.getItemDisplayName( is ) + " - " + GuiText.Encoded.getLocal() : super.getItemDisplayName( is );
|
return username.length() > 0 ? super.getItemDisplayName( is ) + " - " + username : super.getItemDisplayName( is );// GuiText.Encoded.getLocal()
|
||||||
|
// //
|
||||||
|
// );
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
@@ -74,9 +76,9 @@ public class ToolBiometricCard extends AEBaseItem implements IBiometricCard
|
|||||||
@Override
|
@Override
|
||||||
public void addInformation(ItemStack is, EntityPlayer p, List l, boolean b)
|
public void addInformation(ItemStack is, EntityPlayer p, List l, boolean b)
|
||||||
{
|
{
|
||||||
String username = getUsername( is );
|
// String username = getUsername( is );
|
||||||
if ( username.length() > 0 )
|
// if ( username.length() > 0 )
|
||||||
l.add( username );
|
// l.add( username );
|
||||||
|
|
||||||
EnumSet<SecurityPermissions> perms = getPermissions( is );
|
EnumSet<SecurityPermissions> perms = getPermissions( is );
|
||||||
if ( perms.isEmpty() )
|
if ( perms.isEmpty() )
|
||||||
|
|||||||
Reference in New Issue
Block a user