Advertisement
tahg

Untitled

Aug 6th, 2012
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.32 KB | None | 0 0
  1. public static int[] getSettingsInt(String s)
  2. {
  3. int[] empty;
  4. try {
  5. return (int[])(int[])settings.get(s);
  6. }
  7. catch (NullPointerException e)
  8. {
  9. console(new StringBuilder().append("Failed to read settings: ").append(s).toString());
  10. empty = new int[0];
  11. }return empty;
  12. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement