nossr50 пре 2 месеци
родитељ
комит
b48d66abbe

+ 1 - 1
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>

+ 1 - 1
src/main/java/com/gmail/nossr50/skills/crossbows/CrossbowsManager.java

@@ -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());

+ 1 - 0
src/test/java/com/gmail/nossr50/skills/acrobatics/AcrobaticsTest.java

@@ -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);