mirror of
https://github.com/CitizensDev/Citizens2.git
synced 2024-12-23 01:27:33 +01:00
Lower default movement speed for slimes
This commit is contained in:
parent
5552bff4cf
commit
61c96f08ef
@ -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;
|
||||
|
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user