Skip to content

Commit 1cb0b40

Browse files
committed
Fix #1026
1 parent 20d46ff commit 1cb0b40

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

src/main/java/com/flansmod/common/tools/EntityParachute.java

+11
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
package com.flansmod.common.tools;
22

3+
import javax.annotation.Nullable;
4+
import java.util.List;
5+
36
import io.netty.buffer.ByteBuf;
47
import net.minecraft.block.material.Material;
58
import net.minecraft.entity.Entity;
@@ -94,6 +97,14 @@ protected void entityInit()
9497
{
9598
}
9699

100+
@Nullable
101+
@Override
102+
public Entity getControllingPassenger()
103+
{
104+
List<Entity> list = this.getPassengers();
105+
return list.isEmpty() ? null : list.get(0);
106+
}
107+
97108
@Override
98109
protected void readEntityFromNBT(NBTTagCompound tags)
99110
{

0 commit comments

Comments
 (0)