Skip to content
Permalink
Browse files

Fixed particles not rendering correctly on the first placed support b…

…lock, fixed shrink itemstack consuming one unit more on support horizontal placement
  • Loading branch information
DisasterMoo committed Jul 1, 2019
1 parent e6b6581 commit 4e4206a0ed1d48e7b3447d1c0fe942f3a1af95fd
@@ -217,7 +217,7 @@ public boolean canPlaceBlockAt(World worldIn, @Nonnull BlockPos pos)
public IBlockState getStateForPlacement(World worldIn, BlockPos pos, EnumFacing facing, float hitX, float hitY, float hitZ, int meta, EntityLivingBase placer)
{
return this.getDefaultState()
.withProperty(AXIS, BlockLog.EnumAxis.NONE)
.withProperty(AXIS, BlockLog.EnumAxis.Y)
.withProperty(NORTH, false)
.withProperty(SOUTH, false)
.withProperty(EAST, false)
@@ -268,7 +268,7 @@ public void onBlockPlacedBy(World worldIn, BlockPos pos, IBlockState state, Enti
}
else if (distance > 0)
{
stack.shrink(distance);
stack.shrink(distance-1); //-1 because the first one is already placed by onBlockPlace
for (int i = 1; i < distance; i++)
{
if (worldIn.getBlockState(pos.offset(face, i)).getMaterial().isReplaceable())

0 comments on commit 4e4206a

Please sign in to comment.
You can’t perform that action at this time.