Skip to content

Commit

Permalink
AbyssalCraft 1.9.0 fix
Browse files Browse the repository at this point in the history
Forgot to check for the CORRECT obfuscated names in PotionHelper. Closes
#64
  • Loading branch information
Shinoow committed Mar 2, 2016
1 parent 0d92a77 commit 413cac2
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ public class AbyssalCraftAPI {
public static void initPotionReflection(){
for(Field f : PotionHelper.class.getDeclaredFields())
try {
if(f.getName().equals("potionRequirements") || f.getName().equals("field_77927_l")){
if(f.getName().equals("potionRequirements") || f.getName().equals("field_179539_o")){
f.setAccessible(true);
try {
potionRequirements = (HashMap<Integer, String>)f.get(null);
Expand All @@ -137,7 +137,7 @@ public static void initPotionReflection(){
e.printStackTrace();
}
}
if(f.getName().equals("potionAmplifiers") || f.getName().equals("field_77928_m")){
if(f.getName().equals("potionAmplifiers") || f.getName().equals("field_179540_p")){
f.setAccessible(true);
try {
potionAmplifiers = (HashMap<Integer, String>)f.get(null);
Expand Down

0 comments on commit 413cac2

Please sign in to comment.