We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bb7a2d3 commit 9991808Copy full SHA for 9991808
1 file changed
src/main/java/meteordevelopment/meteorclient/systems/modules/render/EntityOwner.java
@@ -24,6 +24,8 @@
24
import net.minecraft.entity.LivingEntity;
25
import net.minecraft.entity.passive.TameableEntity;
26
import net.minecraft.entity.player.PlayerEntity;
27
+import net.minecraft.entity.projectile.thrown.EnderPearlEntity;
28
+
29
import org.jetbrains.annotations.Nullable;
30
import org.joml.Vector3d;
31
@@ -63,6 +65,7 @@ private void onRender2D(Render2DEvent event) {
63
65
@Nullable LazyEntityReference<LivingEntity> owner;
64
66
67
if (entity instanceof TameableEntity tameable) owner = tameable.getOwnerReference();
68
+ else if (entity instanceof EnderPearlEntity pearl) owner = LazyEntityReference.of((LivingEntity)pearl.getOwner());
69
else continue;
70
71
if (owner != null) {
0 commit comments