geforkt von Mirrors/Paper
Fix crash involving fireballs
Dieser Commit ist enthalten in:
Ursprung
4309566390
Commit
38a66b6560
@ -5,7 +5,7 @@
|
||||
import javax.annotation.Nullable;
|
||||
|
||||
+// CraftBukkit start
|
||||
+import org.bukkit.entity.LivingEntity;
|
||||
+import org.bukkit.projectiles.ProjectileSource;
|
||||
+// CraftBukkit end
|
||||
+
|
||||
public abstract class IProjectile extends Entity {
|
||||
@ -15,7 +15,7 @@
|
||||
this.shooter = entity.getUniqueID();
|
||||
this.c = entity.getId();
|
||||
}
|
||||
+ this.projectileSource = entity == null ? null : (LivingEntity) entity.getBukkitEntity(); // CraftBukkit
|
||||
+ this.projectileSource = (entity instanceof ProjectileSource) ? (ProjectileSource) entity.getBukkitEntity() : null; // CraftBukkit
|
||||
|
||||
}
|
||||
|
||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren