Fix placing torches and the like on inverted woden slabs.

This commit is contained in:
LexManos 2012-09-05 22:06:32 -07:00
parent c4852b02c3
commit 437d83e9b3
3 changed files with 3 additions and 3 deletions

View file

@ -167,7 +167,7 @@
+ public boolean isBlockSolidOnSide(World world, int x, int y, int z, ForgeDirection side)
+ {
+ int meta = world.getBlockMetadata(x, y, z);
+ if (this instanceof BlockStep)
+ if (this instanceof BlockHalfSlab)
+ {
+ return (((meta & 8) == 8 && (side == UP)) || isOpaqueCube());
+ }

View file

@ -22,8 +22,8 @@
float var10 = 1.0F;
float var11 = 0.8F;
@@ -1959,7 +1960,7 @@
double var28;
double var30;
double var32;
- if (!this.blockAccess.doesBlockHaveSolidTopSurface(par2, par3 - 1, par4) && !Block.fire.canBlockCatchFire(this.blockAccess, par2, par3 - 1, par4))
+ if (!this.blockAccess.doesBlockHaveSolidTopSurface(par2, par3 - 1, par4) && !Block.fire.canBlockCatchFire(this.blockAccess, par2, par3 - 1, par4, UP))

View file

@ -76,8 +76,8 @@
if (this.field_77024_a)
{
@@ -192,9 +191,9 @@
float var11;
float var12;
float var16;
- if (par3 < 256 && RenderBlocks.renderItemIn3d(Block.blocksList[par3].getRenderType()))
- {