[Bleeding] Implement ProjectileSource API. Addresses BUKKIT-1038, BUKKIT-1156
This commit is contained in:
committed by
Nate Mortensen
parent
ac53442e7e
commit
8a5ad89a68
@@ -42,6 +42,7 @@ public abstract class DispenseBehaviorProjectile extends DispenseBehaviorItem {
|
||||
}
|
||||
|
||||
iprojectile.shoot(event.getVelocity().getX(), event.getVelocity().getY(), event.getVelocity().getZ(), this.b(), this.a());
|
||||
((Entity) iprojectile).projectileSource = new org.bukkit.craftbukkit.projectiles.CraftBlockProjectileSource((TileEntityDispenser) isourceblock.getTileEntity());
|
||||
// CraftBukkit end
|
||||
|
||||
world.addEntity((Entity) iprojectile);
|
||||
|
||||
Reference in New Issue
Block a user