Skip to content

Commit b48d66a

Browse files
committed
2.2.032
1 parent 752174a commit b48d66a

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

pom.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<modelVersion>4.0.0</modelVersion>
33
<groupId>com.gmail.nossr50.mcMMO</groupId>
44
<artifactId>mcMMO</artifactId>
5-
<version>2.2.032-SNAPSHOT</version>
5+
<version>2.2.032</version>
66
<name>mcMMO</name>
77
<url>https://github.com/mcMMO-Dev/mcMMO</url>
88
<scm>

src/main/java/com/gmail/nossr50/skills/crossbows/CrossbowsManager.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ private void spawnReflectedArrow(@NotNull Plugin pluginRef, @NotNull Arrow origi
6363
}
6464

6565
// Spawn new arrow with the reflected direction
66-
Arrow spawnedArrow = originalArrow.getWorld().spawnArrow(origin, reflectedDirection, 1, 1);
66+
final Arrow spawnedArrow = originalArrow.getWorld().spawnArrow(origin, reflectedDirection, 1, 1);
6767
// copy some properties from the old arrow
6868
spawnedArrow.setShooter(originalArrowShooter);
6969
spawnedArrow.setCritical(originalArrow.isCritical());

src/test/java/com/gmail/nossr50/skills/acrobatics/AcrobaticsTest.java

+1
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,7 @@ public void rollShouldNotLowerDamage() {
9090

9191
private @NotNull EntityDamageEvent mockEntityDamageEvent(double damage) {
9292
final EntityDamageEvent mockEvent = mock(EntityDamageEvent.class);
93+
when(mockEvent.isApplicable(any(EntityDamageEvent.DamageModifier.class))).thenReturn(true);
9394
when(mockEvent.getCause()).thenReturn(EntityDamageEvent.DamageCause.FALL);
9495
when(mockEvent.getFinalDamage()).thenReturn(damage);
9596
when(mockEvent.getDamage(any(EntityDamageEvent.DamageModifier.class))).thenReturn(damage);

0 commit comments

Comments
 (0)