mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2025-03-27 12:19:44 +01:00
2.2.032
This commit is contained in:
parent
752174ad6d
commit
b48d66abbe
2
pom.xml
2
pom.xml
@ -2,7 +2,7 @@
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
<groupId>com.gmail.nossr50.mcMMO</groupId>
|
||||
<artifactId>mcMMO</artifactId>
|
||||
<version>2.2.032-SNAPSHOT</version>
|
||||
<version>2.2.032</version>
|
||||
<name>mcMMO</name>
|
||||
<url>https://github.com/mcMMO-Dev/mcMMO</url>
|
||||
<scm>
|
||||
|
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user