Lower default movement speed for slimes

This commit is contained in:
fullwall 2017-04-03 01:25:27 +08:00
parent 5552bff4cf
commit 61c96f08ef
2 changed files with 3 additions and 2 deletions

View File

@ -90,7 +90,9 @@ public class PlayerControllerMove extends ControllerMove {
this.a.yaw = a(this.a.yaw, f, 90.0F);
NMS.setHeadYaw(a.getBukkitEntity(), this.a.yaw);
AttributeInstance speed = this.a.getAttributeInstance(GenericAttributes.MOVEMENT_SPEED);
speed.setValue(0.1D * this.e);
if (!(this.a instanceof EntitySlime)) {
speed.setValue(0.1D * this.e);
}
float movement = (float) (this.e * speed.getValue()) * 10;
this.a.l(movement);
this.a.bf = movement;

View File

@ -31,7 +31,6 @@ public class PlayerlistTrackerEntry extends EntityTrackerEntry {
&& ((entityplayer.x().getPlayerChunkMap().a(entityplayer, tracker.ab, tracker.ad))
|| (tracker.attachedToPlayer))) {
if ((tracker instanceof SkinnableEntity)) {
SkinnableEntity skinnable = (SkinnableEntity) tracker;
Player player = skinnable.getBukkitEntity();