Fixed spider morph

This commit is contained in:
Mysticate 2015-10-07 21:53:23 -04:00
parent e864e0867a
commit 70f3ccf703
1 changed files with 3 additions and 7 deletions

View File

@ -57,7 +57,7 @@ public class MountSpider extends HorseMount
C.cYellow + "Jump" + C.cGray + " to use " + C.cGreen + "Jump",
C.cYellow + "Double Jump" + C.cGray + " to use " + C.cGreen + "Leap",
C.cBlack,
C.cPurple + "Only buyable during " + C.Line + "Halloween 2015",
C.cPurple + "Only available during " + C.Line + "Halloween 2015",
C.cPurple + "Purchase at " + C.Line + "www.mineplex.com/shop"
}, Material.WEB, (byte) 0, -1, Color.BLACK, Style.NONE, Variant.HORSE, 2.0, Material.AIR);
}
@ -175,12 +175,8 @@ public class MountSpider extends HorseMount
//Disable Flight
player.setAllowFlight(false);
Vector direction = event.getPlayer().getLocation().getDirection().clone();
direction.normalize().setY(0); //Make level
direction.multiply(1.4).setY(.6);
//Velocity
UtilAction.velocity(GetActive().get(event.getPlayer()), direction);
UtilAction.velocity(GetActive().get(event.getPlayer()), 1.4, 0.2, 1, true);
//Sound
player.playSound(player.getLocation(), Sound.SPIDER_IDLE, .4F, 1.0F);
@ -198,7 +194,7 @@ public class MountSpider extends HorseMount
try
{
Field jump = EntityLiving.class.getField("bc");
Field jump = EntityLiving.class.getDeclaredField("bc");
final boolean accessable = jump.isAccessible();
jump.setAccessible(true);