Non-painted dark steel pressure plates dropping without a texture.

This commit is contained in:
CrazyPants committed 2014-09-02 16:50:54 +08:00
1 parent a548deac9a
commit c55a2b16e4
1 file changed
+3 -1
@@ -77,7 +77,9 @@ public class BlockDarkSteelPressurePlate extends BlockPressurePlate implements I
if(te instanceof TileEntityPaintedBlock) {
TileEntityPaintedBlock tepb = (TileEntityPaintedBlock) te;
ItemStack stack = new ItemStack(this);
PainterUtil.setSourceBlock(stack, tepb.getSourceBlock(), tepb.getSourceBlockMetadata());
if(tepb.getSourceBlock() != null) {
PainterUtil.setSourceBlock(stack, tepb.getSourceBlock(), tepb.getSourceBlockMetadata());
}
float f = 0.7F;
double d0 = world.rand.nextFloat() * f + (1.0F - f) * 0.5D;