Compare commits

...

3 Commits

Author SHA1 Message Date
nossr50
c3103beea2 back to the lab again 2025-05-11 15:00:59 -07:00
nossr50
f7dbd884f4 2.2.036 2025-05-11 14:54:45 -07:00
nossr50
8c89462b0a fix trickshot not applying potion effects or custom effects 2025-05-11 14:47:31 -07:00
3 changed files with 12 additions and 1 deletions

View File

@ -2,6 +2,7 @@ Version 2.2.036
Fixed a bug where Chimaera Wing could cause an exception when used Fixed a bug where Chimaera Wing could cause an exception when used
Fixed bug where Mob Spawners could drop in Blast Mining (thanks TomBock) Fixed bug where Mob Spawners could drop in Blast Mining (thanks TomBock)
Fixed Spectral Arrows not granting XP for Archery or Crossbows (thanks broccolai) Fixed Spectral Arrows not granting XP for Archery or Crossbows (thanks broccolai)
Fixed bug where Trickshot arrows would lose their potion or custom effects
Added locale strings for /mcmmo help command (thanks Griffeng) Added locale strings for /mcmmo help command (thanks Griffeng)
Version 2.2.035 Version 2.2.035

View File

@ -2,7 +2,7 @@
<modelVersion>4.0.0</modelVersion> <modelVersion>4.0.0</modelVersion>
<groupId>com.gmail.nossr50.mcMMO</groupId> <groupId>com.gmail.nossr50.mcMMO</groupId>
<artifactId>mcMMO</artifactId> <artifactId>mcMMO</artifactId>
<version>2.2.036-SNAPSHOT</version> <version>2.2.037-SNAPSHOT</version>
<name>mcMMO</name> <name>mcMMO</name>
<url>https://github.com/mcMMO-Dev/mcMMO</url> <url>https://github.com/mcMMO-Dev/mcMMO</url>
<scm> <scm>

View File

@ -74,6 +74,16 @@ public class CrossbowsManager extends SkillManager {
spawnedArrow.setPickupStatus(originalArrow.getPickupStatus()); spawnedArrow.setPickupStatus(originalArrow.getPickupStatus());
spawnedArrow.setKnockbackStrength(originalArrow.getKnockbackStrength()); spawnedArrow.setKnockbackStrength(originalArrow.getKnockbackStrength());
if (originalArrow.getBasePotionType() != null) {
spawnedArrow.setBasePotionType(originalArrow.getBasePotionType());
}
if (originalArrow.hasCustomEffects()) {
for (var effect : originalArrow.getCustomEffects()) {
spawnedArrow.addCustomEffect(effect, true);
}
}
// copy metadata from old arrow // copy metadata from old arrow
ProjectileUtils.copyArrowMetadata(pluginRef, originalArrow, spawnedArrow); ProjectileUtils.copyArrowMetadata(pluginRef, originalArrow, spawnedArrow);
originalArrow.remove(); originalArrow.remove();