Fixed Texture Errors occuring

This commit is contained in:
Ellpeck 2015-07-06 23:41:10 +02:00
parent acd7d990f3
commit c1eeebd50b
5 changed files with 22 additions and 12 deletions

View file

@ -6,6 +6,7 @@ import ellpeck.actuallyadditions.util.BlockUtil;
import ellpeck.actuallyadditions.util.INameableItem; import ellpeck.actuallyadditions.util.INameableItem;
import net.minecraft.block.Block; import net.minecraft.block.Block;
import net.minecraft.block.material.Material; import net.minecraft.block.material.Material;
import net.minecraft.client.renderer.texture.IIconRegister;
import net.minecraft.entity.Entity; import net.minecraft.entity.Entity;
import net.minecraft.entity.player.EntityPlayer; import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.item.EnumRarity; import net.minecraft.item.EnumRarity;
@ -71,6 +72,12 @@ public class BlockSlabs extends Block implements INameableItem{
return this.fullBlock.getIcon(0, 0); return this.fullBlock.getIcon(0, 0);
} }
@Override
@SideOnly(Side.CLIENT)
public void registerBlockIcons(IIconRegister iconReg){
}
@Override @Override
public String getName(){ public String getName(){
return this.name; return this.name;

View file

@ -8,6 +8,7 @@ import ellpeck.actuallyadditions.util.INameableItem;
import net.minecraft.block.Block; import net.minecraft.block.Block;
import net.minecraft.block.BlockBush; import net.minecraft.block.BlockBush;
import net.minecraft.block.material.Material; import net.minecraft.block.material.Material;
import net.minecraft.client.renderer.texture.IIconRegister;
import net.minecraft.creativetab.CreativeTabs; import net.minecraft.creativetab.CreativeTabs;
import net.minecraft.entity.player.EntityPlayer; import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.item.EnumRarity; import net.minecraft.item.EnumRarity;
@ -58,6 +59,12 @@ public class BlockWildPlant extends BlockBush implements INameableItem{
return metadata >= allWildPlants.length ? null : allWildPlants[metadata].wildVersionOf.getIcon(0, 7); return metadata >= allWildPlants.length ? null : allWildPlants[metadata].wildVersionOf.getIcon(0, 7);
} }
@Override
@SideOnly(Side.CLIENT)
public void registerBlockIcons(IIconRegister iconReg){
}
@Override @Override
public String getName(){ public String getName(){
return "blockWild"; return "blockWild";

View file

@ -10,7 +10,7 @@ public class VillageCustomCropFieldHandler implements VillagerRegistry.IVillageC
@Override @Override
public StructureVillagePieces.PieceWeight getVillagePieceWeight(Random random, int i){ public StructureVillagePieces.PieceWeight getVillagePieceWeight(Random random, int i){
return new StructureVillagePieces.PieceWeight(VillageComponentCustomCropField.class, 5, 2); return new StructureVillagePieces.PieceWeight(VillageComponentCustomCropField.class, 5, 1);
} }
@Override @Override

View file

@ -9,12 +9,16 @@ import java.util.UUID;
public class FakePlayerUtil{ public class FakePlayerUtil{
public static final String fakeName = "EllpecksActuallyAdditionsFakePlayer"; private static final String fakeName = "EllpecksActuallyAdditionsFakePlayer";
public static GameProfile fakeProfile = new GameProfile(UUID.nameUUIDFromBytes(fakeName.getBytes()), fakeName); private static GameProfile fakeProfile = new GameProfile(UUID.nameUUIDFromBytes(fakeName.getBytes()), fakeName);
private static FakePlayer theFakePlayer;
public static FakePlayer newFakePlayer(World world){ public static FakePlayer newFakePlayer(World world){
if(world instanceof WorldServer){ if(world instanceof WorldServer){
return new FakePlayer((WorldServer)world, fakeProfile); if(theFakePlayer == null){
theFakePlayer = new FakePlayer((WorldServer)world, fakeProfile);
}
return theFakePlayer;
} }
else return null; else return null;
} }

View file

@ -316,8 +316,6 @@ item.actuallyadditions.itemFoodCarrotJuice.name=Carrot Juice
item.actuallyadditions.itemFoodPumpkinStew.name=Pumpkin Stew item.actuallyadditions.itemFoodPumpkinStew.name=Pumpkin Stew
item.actuallyadditions.itemFoodCheese.name=Cheese item.actuallyadditions.itemFoodCheese.name=Cheese
item.actuallyadditions.itemUpgradeSpeed.name=Speed Upgrade
item.actuallyadditions.itemMiscCoil.name=Basic Coil item.actuallyadditions.itemMiscCoil.name=Basic Coil
item.actuallyadditions.itemMiscCoilAdvanced.name=Advanced Coil item.actuallyadditions.itemMiscCoilAdvanced.name=Advanced Coil
@ -367,12 +365,6 @@ tooltip.actuallyadditions.itemJamPiCo.desc=Pineapple and Coconut
tooltip.actuallyadditions.itemHairyBall.desc.1=A Ball of Hair dropped from a Cat... tooltip.actuallyadditions.itemHairyBall.desc.1=A Ball of Hair dropped from a Cat...
tooltip.actuallyadditions.itemHairyBall.desc.2=Maybe you can get something from it by using it... tooltip.actuallyadditions.itemHairyBall.desc.2=Maybe you can get something from it by using it...
tooltip.actuallyadditions.itemUpgradeSpeed.desc.1=Speeds up Machines when placed in their Upgrade Slot
tooltip.actuallyadditions.itemUpgradeSpeed.desc.2=Works in:
tooltip.actuallyadditions.itemUpgradeSpeed.desc.3=-Double Furnace
tooltip.actuallyadditions.itemUpgradeSpeed.desc.4=-Crusher
tooltip.actuallyadditions.itemUpgradeSpeed.desc.5=-Double Crusher
tooltip.actuallyadditions.blockPhantomRange.desc=Range tooltip.actuallyadditions.blockPhantomRange.desc=Range
tooltip.actuallyadditions.blockCompost.desc=Used to make Fertilizer with Mashed Food tooltip.actuallyadditions.blockCompost.desc=Used to make Fertilizer with Mashed Food