Velocity and armour fix

This commit is contained in:
Sam 2017-05-18 03:13:31 +01:00 committed by cnr
parent 500367b473
commit 3794686f58
2 changed files with 4 additions and 0 deletions

View File

@ -29,6 +29,7 @@ public class PerkMagmaBoost extends Perk
{
private static final ItemStack BOOTS = new ItemStack(Material.IRON_BOOTS);
private static final ItemStack CHESTPLATE = new ItemStack(Material.IRON_CHESTPLATE);
private static final ItemStack HELMET = new ItemStack(Material.IRON_HELMET);
private int _maxStacks;
@ -100,6 +101,7 @@ public class PerkMagmaBoost extends Perk
}
else if (size == 2)
{
killer.getInventory().setChestplate(CHESTPLATE);
}
else if (size == 3)
{

View File

@ -158,7 +158,9 @@ public class PerkWitherImage extends SmashPerk
Location loc = skel.getLocation();
skel.teleport(player.getLocation());
UtilAction.velocity(skel, oldPlayerVector);
player.teleport(loc);
UtilAction.velocity(player, oldSkeletonVector);
// Sound
player.getWorld().playSound(player.getLocation(), Sound.WITHER_SPAWN, 1f, 2f);