fix Spawner Changer not working with some mobs

This commit is contained in:
Ellpeck 2016-12-27 11:41:41 +01:00
parent 30118fbc01
commit f0713b56ec

View file

@ -117,7 +117,7 @@ public class ItemSpawnerChanger extends ItemBase{
}
if(!(entity instanceof EntityPlayer) && entity.isNonBoss()){
String entityName = EntityList.getEntityString(entity);
String entityName = EntityList.getEntityStringFromClass(entity.getClass());
if(entityName != null && !entityName.isEmpty()){
for(String name : ConfigStringListValues.SPAWNER_CHANGER_BLACKLIST.getValue()){
if(entityName.equals(name)){