|
11 | 11 | import org.bukkit.World; |
12 | 12 | import org.bukkit.entity.EntityType; |
13 | 13 |
|
| 14 | +import com.google.common.base.Enums; |
| 15 | + |
14 | 16 | import world.bentobox.skygrid.SkyGrid; |
15 | 17 |
|
16 | 18 |
|
@@ -186,13 +188,15 @@ private TreeMap<Integer,EntityType> netherSpawns() { |
186 | 188 | s.put(50, EntityType.MAGMA_CUBE); |
187 | 189 | s.put(75, EntityType.SKELETON); |
188 | 190 | s.put(100, EntityType.WITHER_SKELETON); |
189 | | - s.put(125, EntityType.ZOMBIFIED_PIGLIN); |
190 | 191 | s.put(150, EntityType.SKELETON_HORSE); |
191 | | - s.put(50, EntityType.STRIDER); |
192 | | - s.put(125, EntityType.PIGLIN); |
193 | | - s.put(125, EntityType.ZOGLIN); |
194 | | - s.put(125, EntityType.HOGLIN); |
195 | 192 | s.put(25, EntityType.ENDERMAN); |
| 193 | + if (Enums.getIfPresent(EntityType.class, "ZOMBIFIED_PIGLIN").isPresent()) { |
| 194 | + s.put(125, EntityType.ZOMBIFIED_PIGLIN); |
| 195 | + s.put(50, EntityType.STRIDER); |
| 196 | + s.put(125, EntityType.PIGLIN); |
| 197 | + s.put(125, EntityType.ZOGLIN); |
| 198 | + s.put(125, EntityType.HOGLIN); |
| 199 | + } |
196 | 200 | return s; |
197 | 201 | } |
198 | 202 |
|
|
0 commit comments