Mirror von
https://github.com/PaperMC/Paper.git
synchronisiert 2024-11-16 13:00:06 +01:00
SPIGOT-1679: Shulker bullets are not projectiles.
Dieser Commit ist enthalten in:
Ursprung
f5f09ffcbf
Commit
e2c5473e07
@ -926,9 +926,6 @@ public class CraftWorld implements World {
|
|||||||
entity.setPositionRotation(x, y, z, yaw, pitch);
|
entity.setPositionRotation(x, y, z, yaw, pitch);
|
||||||
Vector direction = location.getDirection().multiply(10);
|
Vector direction = location.getDirection().multiply(10);
|
||||||
((EntityFireball) entity).setDirection(direction.getX(), direction.getY(), direction.getZ());
|
((EntityFireball) entity).setDirection(direction.getX(), direction.getY(), direction.getZ());
|
||||||
} else if (ShulkerBullet.class.isAssignableFrom(clazz)) {
|
|
||||||
entity = new EntityShulkerBullet(world);
|
|
||||||
entity.setPositionRotation(x, y, z, yaw, pitch);
|
|
||||||
}
|
}
|
||||||
} else if (Minecart.class.isAssignableFrom(clazz)) {
|
} else if (Minecart.class.isAssignableFrom(clazz)) {
|
||||||
if (PoweredMinecart.class.isAssignableFrom(clazz)) {
|
if (PoweredMinecart.class.isAssignableFrom(clazz)) {
|
||||||
@ -1104,6 +1101,9 @@ public class CraftWorld implements World {
|
|||||||
entity = new EntityFireworks(world, x, y, z, null);
|
entity = new EntityFireworks(world, x, y, z, null);
|
||||||
} else if (AreaEffectCloud.class.isAssignableFrom(clazz)) {
|
} else if (AreaEffectCloud.class.isAssignableFrom(clazz)) {
|
||||||
entity = new EntityAreaEffectCloud(world, x, y, z);
|
entity = new EntityAreaEffectCloud(world, x, y, z);
|
||||||
|
} else if (ShulkerBullet.class.isAssignableFrom(clazz)) {
|
||||||
|
entity = new EntityShulkerBullet(world);
|
||||||
|
entity.setPositionRotation(x, y, z, yaw, pitch);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (entity != null) {
|
if (entity != null) {
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren