mirror of
https://github.com/AtlasMediaGroup/TotalFreedomMod.git
synced 2025-07-13 21:08:34 +00:00
Filter duplicate IPs and shit in superadmin list.
This commit is contained in:
@ -912,6 +912,15 @@ public class TFM_Util
|
||||
{
|
||||
return restricted_senders.contains(sender_name.toLowerCase());
|
||||
}
|
||||
|
||||
public static List<String> removeDuplicates(List<String> list)
|
||||
{
|
||||
HashSet<String> hash = new HashSet<String>();
|
||||
hash.addAll(list);
|
||||
list.clear();
|
||||
list.addAll(hash);
|
||||
return list;
|
||||
}
|
||||
// I wrote all this before i discovered getTargetBlock >.> - might come in handy some day...
|
||||
// public static final double LOOKAT_VIEW_HEIGHT = 1.65;
|
||||
// public static final double LOOKAT_STEP_DISTANCE = 0.2;
|
||||
|
Reference in New Issue
Block a user