mirror of
https://github.com/Ellpeck/ActuallyAdditions.git
synced 2024-11-22 23:28:35 +01:00
Just in case
This commit is contained in:
parent
c7f5455862
commit
2c6b2dae77
1 changed files with 5 additions and 6 deletions
|
@ -5,7 +5,6 @@ import de.ellpeck.actuallyadditions.mod.items.base.ItemBase;
|
||||||
import de.ellpeck.actuallyadditions.mod.util.ModUtil;
|
import de.ellpeck.actuallyadditions.mod.util.ModUtil;
|
||||||
import de.ellpeck.actuallyadditions.mod.util.StringUtil;
|
import de.ellpeck.actuallyadditions.mod.util.StringUtil;
|
||||||
import net.minecraft.block.state.IBlockState;
|
import net.minecraft.block.state.IBlockState;
|
||||||
import net.minecraft.entity.Entity;
|
|
||||||
import net.minecraft.entity.EntityList;
|
import net.minecraft.entity.EntityList;
|
||||||
import net.minecraft.entity.EntityLivingBase;
|
import net.minecraft.entity.EntityLivingBase;
|
||||||
import net.minecraft.entity.player.EntityPlayer;
|
import net.minecraft.entity.player.EntityPlayer;
|
||||||
|
@ -77,12 +76,12 @@ public class ItemSpawnerChanger extends ItemBase{
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
private boolean storeClickedEntity(ItemStack stack, Entity entity){
|
private boolean storeClickedEntity(ItemStack stack, EntityLivingBase entity){
|
||||||
if(!entity.worldObj.isRemote){
|
if(!stack.hasTagCompound()){
|
||||||
if(!stack.hasTagCompound()){
|
stack.setTagCompound(new NBTTagCompound());
|
||||||
stack.setTagCompound(new NBTTagCompound());
|
}
|
||||||
}
|
|
||||||
|
|
||||||
|
if(!(entity instanceof EntityPlayer)){
|
||||||
String entityName = EntityList.getEntityString(entity);
|
String entityName = EntityList.getEntityString(entity);
|
||||||
if(entityName != null && !entityName.isEmpty()){
|
if(entityName != null && !entityName.isEmpty()){
|
||||||
for(String name : ConfigValues.spawnerChangerBlacklist){
|
for(String name : ConfigValues.spawnerChangerBlacklist){
|
||||||
|
|
Loading…
Reference in a new issue