mirror of
https://github.com/Ellpeck/ActuallyAdditions.git
synced 2024-11-29 18:28:34 +01:00
parent
30f10d5b91
commit
a6f3581d24
1 changed files with 11 additions and 8 deletions
|
@ -118,16 +118,19 @@ public class ItemSpawnerChanger extends ItemBase{
|
||||||
}
|
}
|
||||||
|
|
||||||
if(!(entity instanceof EntityPlayer) && entity.isNonBoss()){
|
if(!(entity instanceof EntityPlayer) && entity.isNonBoss()){
|
||||||
String entityName = EntityList.getEntityString(entity);
|
ResourceLocation entityLoc = EntityList.getKey(entity.getClass());
|
||||||
if(entityName != null && !entityName.isEmpty()){
|
if(entityLoc != null){
|
||||||
for(String name : ConfigStringListValues.SPAWNER_CHANGER_BLACKLIST.getValue()){
|
String entityName = entityLoc.toString();
|
||||||
if(entityName.equals(name)){
|
if(entityName != null && !entityName.isEmpty()){
|
||||||
return false;
|
for(String name : ConfigStringListValues.SPAWNER_CHANGER_BLACKLIST.getValue()){
|
||||||
|
if(entityName.equals(name)){
|
||||||
|
return false;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
stack.getTagCompound().setString("Entity", entityName);
|
stack.getTagCompound().setString("Entity", entityName);
|
||||||
return true;
|
return true;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
|
|
Loading…
Reference in a new issue