We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 20d46ff commit 1cb0b40Copy full SHA for 1cb0b40
src/main/java/com/flansmod/common/tools/EntityParachute.java
@@ -1,5 +1,8 @@
1
package com.flansmod.common.tools;
2
3
+import javax.annotation.Nullable;
4
+import java.util.List;
5
+
6
import io.netty.buffer.ByteBuf;
7
import net.minecraft.block.material.Material;
8
import net.minecraft.entity.Entity;
@@ -94,6 +97,14 @@ protected void entityInit()
94
97
{
95
98
}
96
99
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
108
@Override
109
protected void readEntityFromNBT(NBTTagCompound tags)
110
0 commit comments