Advertisement
Guest User

StashTab

a guest
Feb 17th, 2019
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.35 KB | None | 0 0
  1. public void sortIt()
  2. {
  3. boolean found = false;
  4. for( int y = 0; y < 12; y++ )
  5. {
  6. for( int x = 0; x < 12; x++ )
  7. {
  8. if( items[ y ][ x ].type == ItemType.chaos )
  9. {
  10. found = true;
  11. items[ lastPositionWithNoChaos.y ][ lastPositionWithNoChaos.x ] = items[ y ][ x ];
  12. break;
  13. }
  14.  
  15. if( found )
  16. break;
  17. }
  18. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement