Merge branch '6.0.x' into 6.1.x
This commit is contained in:
commit
5591de3654
3 changed files with 11 additions and 6 deletions
|
@ -17,7 +17,6 @@ public final class BuildersProxy {
|
|||
* Forbid contruction of this class
|
||||
*/
|
||||
private BuildersProxy() {
|
||||
|
||||
}
|
||||
|
||||
public static boolean canPlaceTorch(World world, int i, int j, int k) {
|
||||
|
|
|
@ -44,7 +44,7 @@ public class BlueprintDatabase {
|
|||
/**
|
||||
* Initialize the blueprint database.
|
||||
*
|
||||
* @param configDir config directory to read the blueprints from.
|
||||
* @param inputPaths directories to read the blueprints from.
|
||||
*/
|
||||
public void init(String[] inputPaths, String outputPath) {
|
||||
outputDir = new File(outputPath);
|
||||
|
|
|
@ -36,12 +36,13 @@ public class RenderingMarkers implements ISimpleBlockRenderingHandler {
|
|||
|
||||
@Override
|
||||
public boolean renderWorldBlock(IBlockAccess world, int x, int y, int z, Block block, int modelId, RenderBlocks renderer) {
|
||||
|
||||
Tessellator tessellator = Tessellator.instance;
|
||||
float f = block.getMixedBrightnessForBlock(world, x, y, z);
|
||||
|
||||
if (block.getLightValue() > 0) {
|
||||
f = 1.0F;
|
||||
}
|
||||
|
||||
tessellator.setColorOpaque_F(f, f, f);
|
||||
renderMarkerWithMeta(world, block, x, y, z, world.getBlockMetadata(x, y, z));
|
||||
|
||||
|
@ -130,6 +131,11 @@ public class RenderingMarkers implements ISimpleBlockRenderingHandler {
|
|||
|
||||
public void renderMarkerWithMeta(IBlockAccess iblockaccess, Block block, double xi, double yi, double zi, int meta) {
|
||||
Tessellator tessellator = Tessellator.instance;
|
||||
int metadata = meta;
|
||||
|
||||
if (metadata > 5 || metadata < 0) {
|
||||
metadata = 1;
|
||||
}
|
||||
|
||||
double x = xi;
|
||||
double y = yi;
|
||||
|
@ -141,7 +147,7 @@ public class RenderingMarkers implements ISimpleBlockRenderingHandler {
|
|||
|
||||
IIcon i = block.getIcon(iblockaccess, xCoord, yCoord, zCoord, 1);
|
||||
|
||||
int m = metaToOld[meta];
|
||||
int m = metaToOld[metadata];
|
||||
x += 0.5D;
|
||||
z += 0.5D;
|
||||
|
||||
|
|
Loading…
Reference in a new issue