Advertisement
Corosus

Untitled

Oct 22nd, 2012
48
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.78 KB | None | 0 0
  1. try {
  2.             if (hasTropicraft) {
  3.                 if (fishingRodTropical == null) {
  4.                     Class clazz = Class.forName("net.tropicraft.mods.TropicraftMod");
  5.                    
  6.                     if (clazz != null) {
  7.                         fishingRodTropical = (Item)getPrivateValue(clazz, clazz, "fishingRodTropical");
  8.                         if (fishingRodTropical == null) {
  9.                             hasTropicraft = false;
  10.                             return;
  11.                         } else {
  12.                             ent.setCurrentItem(fishingRodTropical.shiftedIndex);
  13.                         }
  14.                     } else {
  15.                         hasTropicraft = false;                 
  16.                     }
  17.                 } else {
  18.                    
  19.                 }
  20.             }
  21.         } catch (Exception ex) {
  22.             hasTropicraft = false;
  23.             System.out.println("this really shouldnt ever happen unless fishing job is used outside tropicraft");
  24.             //ex.printStackTrace();
  25.         }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement