|
@@ -10,7 +10,6 @@ import net.minecraft.entity.projectile.DamagingProjectileEntity;
|
|
|
import net.minecraft.entity.projectile.ThrowableEntity;
|
|
|
import net.minecraft.server.MinecraftServer;
|
|
|
import net.minecraft.util.math.AxisAlignedBB;
|
|
|
-import net.minecraft.util.math.BlockPos;
|
|
|
import net.minecraft.util.math.Vec3d;
|
|
|
import net.minecraft.world.IWorld;
|
|
|
import net.minecraft.util.DamageSource;
|
|
@@ -25,6 +24,10 @@ public class Utils
|
|
|
if(ent instanceof ArrowEntity)
|
|
|
{
|
|
|
ArrowEntity arrow = (ArrowEntity) ent;
|
|
|
+ if(arrow.shootingEntity == null)
|
|
|
+ {
|
|
|
+ return null;
|
|
|
+ }
|
|
|
return arrow.world.getPlayerByUuid(arrow.shootingEntity);
|
|
|
}
|
|
|
else if(ent instanceof ThrowableEntity)
|