Tweaked Biometric Cards for Sorting purposes.

This commit is contained in:
AlgorithmX2
2014-02-05 23:17:06 -06:00
parent 084d45530d
commit 28fa9bfc5a
+6 -4
View File
@@ -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() )