Merge branch '6.0.x' into 6.1.x

Conflicts:
	build.gradle
	common/buildcraft/transport/render/FacadeItemRenderer.java
This commit is contained in:
SpaceToad 2014-09-06 12:32:59 +02:00
commit 0381a4edd0
3 changed files with 17 additions and 11 deletions

View file

@ -0,0 +1,5 @@
#1982 remove landmark's levitation. [Prototik]
#1979 fixed crashes with third party mods and facades [tterrag1098]
#1969 fix builder/filler not rendering if player is too far away [ganymedes01]
#1967 fixed US grammar [61352151511]
#1961 fixed US grammar [61352151511]

View file

@ -1,3 +1,3 @@
1.6.4:BuildCraft:4.2.2
1.7.2:BuildCraft:6.0.16
1.7.10:BuildCraft:6.0.17
1.7.10:BuildCraft:6.0.18

View file

@ -143,21 +143,22 @@ public class FacadeItemRenderer implements IItemRenderer {
}
private IIcon tryGetBlockIcon(Block block, int side, int decodedMeta) {
try {
IIcon icon = block.getIcon(side, decodedMeta);
IIcon icon = null;
if (icon != null) {
return icon;
} else {
return PipeIconProvider.TYPE.TransparentFacade.getIcon();
}
try {
icon = block.getIcon(side, decodedMeta);
} catch (Throwable t) {
try {
return block.getBlockTextureFromSide(side);
} catch (Throwable t2) {
return PipeIconProvider.TYPE.TransparentFacade.getIcon();
icon = block.getBlockTextureFromSide(side);
} catch (Throwable ignored) {
}
} finally {
if (icon == null) {
icon = PipeIconProvider.TYPE.TransparentFacade.getIcon();
}
}
return icon;
}
@Override