Version 0.7.5

Added Mounting, Fixed Releasing from distance
This commit is contained in:
C_Corp2002 authored and GitHub committed 2024-01-27 13:39:52 -05:00
1 parent 7e1a4a6269
commit 9b30e0749f
11 files changed
+148 -56

No files matched your search

@@ -57,7 +57,7 @@ public class PotionProjectile extends SiegeEngineProjectile {
} else {
arrow.setVelocity(loc.getDirection().multiply(velocity));
}
arrow.setMetadata("isExplosiveProj", SiegeEnginesUtil.addMetaDataValue("true"));
arrow.setMetadata("isPotionProj", SiegeEnginesUtil.addMetaDataValue("true"));
Bukkit.getServer().getPluginManager().callEvent(new org.bukkit.event.entity.ProjectileLaunchEvent(arrow));
ItemStack itemStack = new ItemStack(Material.SPLASH_POTION);
PotionMeta potionMeta = (PotionMeta) itemStack.getItemMeta();