Changes to floating block bounding box
This commit is contained in:
parent
f856097385
commit
1872336c72
1 changed files with 3 additions and 2 deletions
|
@ -26,15 +26,16 @@ public class EntityFloatingBlock extends Entity
|
|||
public EntityFloatingBlock(World worldIn)
|
||||
{
|
||||
super(worldIn);
|
||||
|
||||
this.setSize(1.0F, 1.0F);
|
||||
}
|
||||
|
||||
public EntityFloatingBlock(World world, BlockPos pos, IBlockState state)
|
||||
{
|
||||
super(world);
|
||||
this(world);
|
||||
this.preventEntitySpawning = true;
|
||||
this.motionX = this.motionY = this.motionZ = 0;
|
||||
|
||||
this.setSize(0.98F, 0.98F);
|
||||
this.setState(state);
|
||||
this.setPosition(pos.getX() + 0.5D, pos.getY(), pos.getZ() + 0.5D);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue