mirror of
https://github.com/CitizensDev/Citizens2.git
synced 2024-11-25 20:25:19 +01:00
Fix mistranslations
This commit is contained in:
parent
b5fe89f29d
commit
3dd8d9242b
@ -218,7 +218,7 @@ public class NMS {
|
|||||||
|
|
||||||
public static void look(LivingEntity bukkitEntity, float yaw, float pitch) {
|
public static void look(LivingEntity bukkitEntity, float yaw, float pitch) {
|
||||||
EntityLiving handle = getHandle(bukkitEntity);
|
EntityLiving handle = getHandle(bukkitEntity);
|
||||||
handle.yaw = handle.ay = yaw;
|
handle.yaw = handle.az = yaw;
|
||||||
handle.pitch = pitch;
|
handle.pitch = pitch;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -246,7 +246,7 @@ public class NMS {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public static void setHeadYaw(EntityLiving handle, float yaw) {
|
public static void setHeadYaw(EntityLiving handle, float yaw) {
|
||||||
handle.ay = yaw;
|
handle.az = yaw;
|
||||||
}
|
}
|
||||||
|
|
||||||
public static void setLandSpeedModifier(EntityLiving handle, float speed) {
|
public static void setLandSpeedModifier(EntityLiving handle, float speed) {
|
||||||
@ -353,8 +353,8 @@ public class NMS {
|
|||||||
MOVEMENT_SPEEDS.put(EntityType.PLAYER, 1F);
|
MOVEMENT_SPEEDS.put(EntityType.PLAYER, 1F);
|
||||||
MOVEMENT_SPEEDS.put(EntityType.VILLAGER, 0.3F);
|
MOVEMENT_SPEEDS.put(EntityType.VILLAGER, 0.3F);
|
||||||
|
|
||||||
LAND_SPEED_MODIFIER_FIELD = getField(EntityLiving.class, "bO");
|
LAND_SPEED_MODIFIER_FIELD = getField(EntityLiving.class, "bP");
|
||||||
SPEED_FIELD = getField(EntityLiving.class, "bG");
|
SPEED_FIELD = getField(EntityLiving.class, "bH");
|
||||||
NAVIGATION_WORLD_FIELD = getField(Navigation.class, "b");
|
NAVIGATION_WORLD_FIELD = getField(Navigation.class, "b");
|
||||||
PATHFINDING_RANGE = getField(Navigation.class, "e");
|
PATHFINDING_RANGE = getField(Navigation.class, "e");
|
||||||
GOAL_FIELD = getField(PathfinderGoalSelector.class, "a");
|
GOAL_FIELD = getField(PathfinderGoalSelector.class, "a");
|
||||||
|
Loading…
Reference in New Issue
Block a user