Dieser Commit ist enthalten in:
Ursprung
1de921b7ff
Commit
6e1b0f70dd
@ -166,18 +166,21 @@ public class NPC {
|
|||||||
}
|
}
|
||||||
this.location = location;
|
this.location = location;
|
||||||
byte yaw = (byte)(int)(location.getYaw() * 256.0 / 360.0);
|
byte yaw = (byte)(int)(location.getYaw() * 256.0 / 360.0);
|
||||||
|
byte pitch = (byte)(int)(location.getPitch() * 256.0 / 360.0);
|
||||||
headRotationYaw.set(headRotation, yaw);
|
headRotationYaw.set(headRotation, yaw);
|
||||||
move = movePacketConstructor.invoke();
|
move = movePacketConstructor.invoke();
|
||||||
movePacketEntity.set(move, entityId);
|
movePacketEntity.set(move, entityId);
|
||||||
movePacketX.set(move, location.getX());
|
movePacketX.set(move, location.getX());
|
||||||
movePacketY.set(move, location.getY());
|
movePacketY.set(move, location.getY());
|
||||||
movePacketZ.set(move, location.getZ());
|
movePacketZ.set(move, location.getZ());
|
||||||
|
movePacketYaw.set(move, yaw);
|
||||||
|
movePacketPitch.set(move, pitch);
|
||||||
|
movePacketOnGround.set(move, true);
|
||||||
namedSpawnX.set(namedSpawn, location.getX());
|
namedSpawnX.set(namedSpawn, location.getX());
|
||||||
namedSpawnY.set(namedSpawn, location.getY());
|
namedSpawnY.set(namedSpawn, location.getY());
|
||||||
namedSpawnZ.set(namedSpawn, location.getZ());
|
namedSpawnZ.set(namedSpawn, location.getZ());
|
||||||
movePacketYaw.set(move, yaw);
|
namedSpawnYaw.set(namedSpawn, yaw);
|
||||||
movePacketPitch.set(move, (byte)(int)(location.getPitch() * 256.0 / 360.0));
|
namedSpawnPitch.set(namedSpawn, pitch);
|
||||||
movePacketOnGround.set(move, true);
|
|
||||||
display.setLocation(location);
|
display.setLocation(location);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
In neuem Issue referenzieren
Einen Benutzer sperren