Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- try {
- if (hasTropicraft) {
- if (fishingRodTropical == null) {
- Class clazz = Class.forName("net.tropicraft.mods.TropicraftMod");
- if (clazz != null) {
- fishingRodTropical = (Item)getPrivateValue(clazz, clazz, "fishingRodTropical");
- if (fishingRodTropical == null) {
- hasTropicraft = false;
- return;
- } else {
- ent.setCurrentItem(fishingRodTropical.shiftedIndex);
- }
- } else {
- hasTropicraft = false;
- }
- } else {
- }
- }
- } catch (Exception ex) {
- hasTropicraft = false;
- System.out.println("this really shouldnt ever happen unless fishing job is used outside tropicraft");
- //ex.printStackTrace();
- }
Advertisement
Add Comment
Please, Sign In to add comment