mirror of
https://github.com/Ellpeck/ActuallyAdditions.git
synced 2024-11-26 08:48:34 +01:00
Disallow bosses to be spawner changed.
Thanks to Dan for noticing it.
This commit is contained in:
parent
51bca2305f
commit
07a9c9b10d
1 changed files with 2 additions and 1 deletions
|
@ -30,6 +30,7 @@ import net.minecraft.util.EnumFacing;
|
||||||
import net.minecraft.util.EnumHand;
|
import net.minecraft.util.EnumHand;
|
||||||
import net.minecraft.util.math.BlockPos;
|
import net.minecraft.util.math.BlockPos;
|
||||||
import net.minecraft.util.text.TextFormatting;
|
import net.minecraft.util.text.TextFormatting;
|
||||||
|
import net.minecraft.world.BossInfo;
|
||||||
import net.minecraft.world.World;
|
import net.minecraft.world.World;
|
||||||
import net.minecraftforge.common.MinecraftForge;
|
import net.minecraftforge.common.MinecraftForge;
|
||||||
import net.minecraftforge.event.world.BlockEvent;
|
import net.minecraftforge.event.world.BlockEvent;
|
||||||
|
@ -106,7 +107,7 @@ public class ItemSpawnerChanger extends ItemBase{
|
||||||
stack.setTagCompound(new NBTTagCompound());
|
stack.setTagCompound(new NBTTagCompound());
|
||||||
}
|
}
|
||||||
|
|
||||||
if(!(entity instanceof EntityPlayer)){
|
if(!(entity instanceof EntityPlayer) && !entity.isNonBoss()){
|
||||||
String entityName = EntityList.getEntityString(entity);
|
String entityName = EntityList.getEntityString(entity);
|
||||||
if(entityName != null && !entityName.isEmpty()){
|
if(entityName != null && !entityName.isEmpty()){
|
||||||
for(String name : ConfigStringListValues.SPAWNER_CHANGER_BLACKLIST.getValue()){
|
for(String name : ConfigStringListValues.SPAWNER_CHANGER_BLACKLIST.getValue()){
|
||||||
|
|
Loading…
Reference in a new issue