Skip to content

Commit

Permalink
Sorta-fix for BiomeNMS 1.11
Browse files Browse the repository at this point in the history
Needs a verification of string values, might be inconsistent!
  • Loading branch information
mcmonkey4eva committed Dec 13, 2016
1 parent d2b2dc8 commit 76495ec
Showing 1 changed file with 1 addition and 7 deletions.
Expand Up @@ -98,14 +98,8 @@ protected boolean getDoesSnow() {
private List<EntityType> getSpawnableEntities(EnumCreatureType creatureType) {
List<EntityType> entityTypes = new ArrayList<EntityType>();
for (BiomeBase.BiomeMeta meta : biomeBase.getMobs(creatureType)) {
entityTypes.add(EntityType.fromId(ENTITY_CLASS_ID_MAP.get(meta.b)));
entityTypes.add(EntityType.valueOf(EntityTypes.getName(meta.b).a())); // TODO: verifyme!
}
return entityTypes;
}

private static final Map<Class<? extends Entity>, Integer> ENTITY_CLASS_ID_MAP;

static {
ENTITY_CLASS_ID_MAP = ReflectionHelper.getFieldValue(EntityTypes.class, "f", null);
}
}

0 comments on commit 76495ec

Please sign in to comment.