Skip to content

Commit

Permalink
Fix #1026
Browse files Browse the repository at this point in the history
  • Loading branch information
ChrisLane committed Mar 25, 2019
1 parent 20d46ff commit 1cb0b40
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions src/main/java/com/flansmod/common/tools/EntityParachute.java
@@ -1,5 +1,8 @@
package com.flansmod.common.tools;

import javax.annotation.Nullable;
import java.util.List;

import io.netty.buffer.ByteBuf;
import net.minecraft.block.material.Material;
import net.minecraft.entity.Entity;
Expand Down Expand Up @@ -94,6 +97,14 @@ protected void entityInit()
{
}

@Nullable
@Override
public Entity getControllingPassenger()
{
List<Entity> list = this.getPassengers();
return list.isEmpty() ? null : list.get(0);
}

@Override
protected void readEntityFromNBT(NBTTagCompound tags)
{
Expand Down

0 comments on commit 1cb0b40

Please sign in to comment.