Skip to content

Commit

Permalink
Fixes backwards compatibility with 1.15.2
Browse files Browse the repository at this point in the history
Fixes #44
  • Loading branch information
tastybento committed Jul 18, 2020
1 parent 8f77336 commit 84fbb8a
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions src/main/java/world/bentobox/skygrid/generators/WorldStyles.java
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@
import org.bukkit.World;
import org.bukkit.entity.EntityType;

import com.google.common.base.Enums;

import world.bentobox.skygrid.SkyGrid;


Expand Down Expand Up @@ -186,13 +188,15 @@ private TreeMap<Integer,EntityType> netherSpawns() {
s.put(50, EntityType.MAGMA_CUBE);
s.put(75, EntityType.SKELETON);
s.put(100, EntityType.WITHER_SKELETON);
s.put(125, EntityType.ZOMBIFIED_PIGLIN);
s.put(150, EntityType.SKELETON_HORSE);
s.put(50, EntityType.STRIDER);
s.put(125, EntityType.PIGLIN);
s.put(125, EntityType.ZOGLIN);
s.put(125, EntityType.HOGLIN);
s.put(25, EntityType.ENDERMAN);
if (Enums.getIfPresent(EntityType.class, "ZOMBIFIED_PIGLIN").isPresent()) {
s.put(125, EntityType.ZOMBIFIED_PIGLIN);
s.put(50, EntityType.STRIDER);
s.put(125, EntityType.PIGLIN);
s.put(125, EntityType.ZOGLIN);
s.put(125, EntityType.HOGLIN);
}
return s;
}

Expand Down

0 comments on commit 84fbb8a

Please sign in to comment.