mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2025-06-26 10:44:43 +02:00
2.2.032
This commit is contained in:
@ -63,7 +63,7 @@ public class CrossbowsManager extends SkillManager {
|
||||
}
|
||||
|
||||
// Spawn new arrow with the reflected direction
|
||||
Arrow spawnedArrow = originalArrow.getWorld().spawnArrow(origin, reflectedDirection, 1, 1);
|
||||
final Arrow spawnedArrow = originalArrow.getWorld().spawnArrow(origin, reflectedDirection, 1, 1);
|
||||
// copy some properties from the old arrow
|
||||
spawnedArrow.setShooter(originalArrowShooter);
|
||||
spawnedArrow.setCritical(originalArrow.isCritical());
|
||||
|
@ -90,6 +90,7 @@ class AcrobaticsTest extends MMOTestEnvironment {
|
||||
|
||||
private @NotNull EntityDamageEvent mockEntityDamageEvent(double damage) {
|
||||
final EntityDamageEvent mockEvent = mock(EntityDamageEvent.class);
|
||||
when(mockEvent.isApplicable(any(EntityDamageEvent.DamageModifier.class))).thenReturn(true);
|
||||
when(mockEvent.getCause()).thenReturn(EntityDamageEvent.DamageCause.FALL);
|
||||
when(mockEvent.getFinalDamage()).thenReturn(damage);
|
||||
when(mockEvent.getDamage(any(EntityDamageEvent.DamageModifier.class))).thenReturn(damage);
|
||||
|
Reference in New Issue
Block a user