fixed a sound issue

This commit is contained in:
Indyuce 2021-08-20 18:24:23 +02:00
parent d5d75fe697
commit a363bc6606
2 changed files with 6 additions and 3 deletions

View File

@ -13,7 +13,7 @@ public class SoundObject {
if(split.length > 2) {
input = split[0];
volume = Float.parseFloat(split[1]);
pitch = Float.parseFloat(split[1]);
pitch = Float.parseFloat(split[2]);
} else {
volume = 1;
pitch = 1;

View File

@ -90,13 +90,16 @@ public class MythicMobSkill extends Skill {
AbstractEntity trigger = BukkitAdapter.adapt(caster.getPlayer());
SkillCaster skillCaster = new GenericCaster(trigger);
io.lumine.xikage.mythicmobs.skills.SkillMetadata skillMeta = new io.lumine.xikage.mythicmobs.skills.SkillMetadata(SkillTrigger.API, skillCaster, trigger, BukkitAdapter.adapt(caster.getPlayer().getLocation()), targetEntities, targetLocations, 1);
io.lumine.xikage.mythicmobs.skills.SkillMetadata skillMeta = new io.lumine.xikage.mythicmobs.skills.SkillMetadata(SkillTrigger.CAST, skillCaster, trigger, BukkitAdapter.adapt(caster.getPlayer().getLocation()), targetEntities, targetLocations, 1);
// Disable anticheat
if (MMOCore.plugin.hasAntiCheat())
MMOCore.plugin.antiCheatSupport.disableAntiCheat(caster.getPlayer(), antiCheat);
if (this.skill.usable(skillMeta, SkillTrigger.API))
/*
* Yo is that me or the second argument is f***ing useless
*/
if (this.skill.usable(skillMeta, SkillTrigger.CAST))
this.skill.execute(skillMeta);
else
cast.abort();