Skip to content

Commit

Permalink
Fix villager data for legacy versions (#3179)
Browse files Browse the repository at this point in the history
  • Loading branch information
ShaneBeee authored Jul 20, 2020
1 parent 7b68e48 commit 2f9446d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/ch/njol/skript/entity/VillagerData.java
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ public class VillagerData extends EntityData<Villager> {
professions = new ArrayList<>();
for (Profession prof : Profession.values()) {
// We're better off doing stringfying the constants since these don't exist in 1.14
if (!prof.toString().equals("NORMAL") || !prof.toString().equals("HUSK"))
if (!prof.toString().equals("NORMAL") && !prof.toString().equals("HUSK"))
professions.add(prof);
}
} else { // Pre 1.10: method Profession#isZombie() doesn't exist
Expand Down

0 comments on commit 2f9446d

Please sign in to comment.