Velocity and armour fix
This commit is contained in:
parent
500367b473
commit
3794686f58
@ -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)
|
||||
{
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user